<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;action=history&amp;feed=atom</id>
		<title>Sudo notes - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;action=history"/>
		<updated>2013-05-19T23:17:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.11.0rc1</generator>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;diff=1234&amp;oldid=prev</id>
		<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 rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Sudo_notes&amp;diff=1234&amp;oldid=prev"/>
				<updated>2008-06-13T15:12:07Z</updated>
		
		<summary type="html">&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;</summary>
		<author><name>Hutch</name></author>	</entry>

	</feed>