<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Sudo notes - Revision history</title>
		<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0rc1</generator>
		<lastBuildDate>Wed, 19 Jun 2013 09:43:38 GMT</lastBuildDate>
		<item>
			<title>Hutch: New page: == sudo ignores current directory in PATH by default ==  * By default, the current directory in a user's PATH is ignored.         ignore_dot  If set, sudo will ignore ’.’ or ’’ (cu...</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;diff=1234&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: == sudo ignores current directory in PATH by default ==  * By default, the current directory in a user's PATH is ignored.         ignore_dot  If set, sudo will ignore ’.’ or ’’ (cu...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== sudo ignores current directory in PATH by default ==&lt;br /&gt;
&lt;br /&gt;
* By default, the current directory in a user's PATH is ignored.&lt;br /&gt;
        ignore_dot  If set, sudo will ignore ’.’ or ’’ (current dir) in the&lt;br /&gt;
                    PATH environment variable; the PATH itself is not modified.&lt;br /&gt;
                    This flag is on by default.  Currently, while it is possi-&lt;br /&gt;
                    ble to set ignore_dot in sudoers, its value is not used.&lt;br /&gt;
                    This option should be considered read-only (it will be&lt;br /&gt;
                    fixed in a future version of sudo).&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 $ '''sudo -l'''&lt;br /&gt;
 User hutchib may run the following commands on this host:&lt;br /&gt;
     (ALL) NOPASSWD: /files1/AdventNet/ME/*/bin/*&lt;br /&gt;
     (ALL) NOPASSWD: /etc/rc.d/init.d/netflowanalyzer&lt;br /&gt;
     (ALL) NOPASSWD: /sbin/service netflowanalyzer *&lt;br /&gt;
 $ '''cd /files1/AdventNet/ME/NetFlow/bin'''&lt;br /&gt;
 $ '''sudo ./linkAsService.sh'''&lt;br /&gt;
 (Prompts for password)&lt;br /&gt;
 $ '''sudo linkAsService.sh'''&lt;br /&gt;
As a workaround, make sure the appropriate directories are in your PATH and execute the command without the '''./'''&lt;br /&gt;
 $ '''PATH=$PATH:$(pwd) sudo linkAsService.sh'''&lt;br /&gt;
 (Works without prompting for password)&lt;/div&gt;</description>
			<pubDate>Fri, 13 Jun 2008 15:12:07 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Sudo_notes</comments>		</item>
	</channel>
</rss>