<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; sudoers</title>
	<atom:link href="http://www.wiredrevolution.com/tag/sudoers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Allow sudo access without passwords in Ubuntu</title>
		<link>http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=allow-sudo-access-without-passwords-in-ubuntu</link>
		<comments>http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu#comments</comments>
		<pubDate>Fri, 21 Nov 2008 13:51:28 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[NOPASSWD]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[visudo]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=695</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/>To give a specific user access to sudo without having to enter a password you have to edit the /etc/sudoers configuration file. For security reasons you should only edit the file using the visudo command. $ sudo visudo In Ubuntu the following lines are placed at the bottom of /etc/sudoers by default. This gives your [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo' rel='bookmark' title='Permanent Link: Submit commands as root with sudo'>Submit commands as root with sudo</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/><p>To give a specific user access to sudo without having to enter a password you have to edit the <strong>/etc/sudoers</strong> configuration file.  For security reasons you should only edit the file using the <strong>visudo</strong> command.</p>
<pre>
$ sudo visudo
</pre>
<p>In Ubuntu the following lines are placed at the bottom of <strong>/etc/sudoers</strong> by default. This gives your default user access to sudo as well as any other user in the admin group. </p>
<pre>
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
</pre>
<p>If you want to allow sudo access without passwords for all users in the admin group you can simply add the <strong>NOPASSWD</strong> option to this line and be done.</p>
<pre>
%admin ALL=(ALL) NOPASSWD: ALL
</pre>
<p>If you want to give a specific user sudo access without passwords, you will have to add an additional line for each user. These lines will conflict with the default admin line above so they <strong>must be placed at the end</strong> of the sudoers file. The reason for this is that sudo will handle contradicting configuration lines by giving priority to the line closest to the bottom of the file.  </p>
<p>Add the following line to the <strong>end</strong> of the file, replace &#8216;ryan&#8217; with your username.</p>
<pre>
ryan    ALL=(ALL) NOPASSWD: ALL
</pre>
<p>Add a line for each user that you wish to have access.</p>
<p>For more ways to use and configure sudo have a look <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">here</a>.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo' rel='bookmark' title='Permanent Link: Submit commands as root with sudo'>Submit commands as root with sudo</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submit commands as root with sudo</title>
		<link>http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=submit-commands-as-root-with-sudo</link>
		<comments>http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:31:05 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[NOPASSWD]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[visudo]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=167</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/>Among the most valuable tools at a Linux administrators disposal is sudo. It lets ordinary users temporarily submit commands as root or another user. To use use this command simply put sudo before any command you want to run with root permissions. sudo command To submit commands as another user use the &#8216;-u&#8216; option and [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu' rel='bookmark' title='Permanent Link: Allow sudo access without passwords in Ubuntu'>Allow sudo access without passwords in Ubuntu</a></li>
<li><a href='http://www.wiredrevolution.com/commands/list-all-open-files-with-lsof' rel='bookmark' title='Permanent Link: List all open files with lsof'>List all open files with lsof</a></li>
<li><a href='http://www.wiredrevolution.com/essential-linux-commands' rel='bookmark' title='Permanent Link: Essential Linux Commands'>Essential Linux Commands</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/><p>Among the most valuable tools at a Linux administrators disposal is sudo.  It lets ordinary users temporarily submit commands as root or another user.</p>
<p>To use use this command simply put sudo before any command you want to run with root permissions.</p>
<pre>
sudo <em>command</em>
</pre>
<p>To submit commands as another user use the &#8216;<strong>-u</strong>&#8216; option and the username. This will submit a command as the user ryan.</p>
<pre>
sudo -u ryan <em>command</em>
</pre>
<p>The sudo configuration file is located at <strong>/etc/sudoers</strong>.</p>
<p>Although /etc/sudoers file is a regular text which root can edit manually, it is recommended that you only edit it using <strong>visudo</strong>. The visudo editor locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for errors.</p>
<p>The /etc/sudoers file has the general format:</p>
<pre>
user hostlist = (userlist) commandlist
</pre>
<p>This is a basic configuration and will allow the user ryan to run any command, on any host, as any user.</p>
<pre>
# User privilege specification
root    ALL=(ALL) ALL
ryan    ALL=(ALL) ALL
</pre>
<p>Here is a more complex example.</p>
<pre>
ryan     tuxbox=(bob, bill)   /bin/kill
</pre>
<p>This will give ryan access to run &#8220;kill&#8221; as the users bob and bill using &#8220;sudo -u&#8221; on the host &#8220;tuxbox&#8221;.</p>
<p>When using the above configurations you will be prompted for ryan&#8217;s password before sudo will execute your command. After the pasword is accepted, you will have a 5 minute window to submit other commands without further password requests.</p>
<p>Submitting a password has its security benefits, but if you are ok without it, there is a way around this inconvenience. If you don&#8217;t want to enter a password add the <strong>NOPASSWD</strong> tag to the configuration file like this.</p>
<pre>
# User privilege specification
root    ALL=(ALL) ALL
ryan    ALL=(ALL) NOPASSWD: ALL
</pre>
<p>If there are configuration lines that contradict one another sudo will give priority to the line closest to the bottom of the file. So if you make changes and they don&#8217;t seem to take effect, check that this is not the case.</p>
<p>All calls to sudo are logged in <strong>/var/log/messages</strong> so you have the ability to keep track of who did what on the system.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu' rel='bookmark' title='Permanent Link: Allow sudo access without passwords in Ubuntu'>Allow sudo access without passwords in Ubuntu</a></li>
<li><a href='http://www.wiredrevolution.com/commands/list-all-open-files-with-lsof' rel='bookmark' title='Permanent Link: List all open files with lsof'>List all open files with lsof</a></li>
<li><a href='http://www.wiredrevolution.com/essential-linux-commands' rel='bookmark' title='Permanent Link: Essential Linux Commands'>Essential Linux Commands</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

