 
    
<?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>visudo Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/visudo/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/visudo/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Wed, 01 May 2013 10:32:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Ubuntu 13.04 &#8211; How to Change the Timout Period for sudo</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-change-the-timout-period-for-sudo/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 01 May 2013 10:32:28 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 13.04]]></category>
		<category><![CDATA[visudo]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2930</guid>

					<description><![CDATA[<p>The instructions are for Ubuntu 13.04, but should be the same for other versions.</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-change-the-timout-period-for-sudo/">Ubuntu 13.04 &#8211; How to Change the Timout Period for sudo</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 13.04.</p>
<p>It is probably the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made.</p>
<p>Detailed instructions for opening a command line / terminal can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-get-a-command-line-shell-or-terminal">here</a>.</p>
</div>
<p>By default, <code>sudo</code> temporarily grants administrative privileges for 15 minutes. This means the first time you run <code>sudo</code> you will be prompted for your password. Then, for the next 15 minutes, you can run <code>sudo &lt;command&gt;</code> without having to re-enter your password.</p>
<p>This should be fine for most users because the average user probably rarely drops to a command line to run an administrative command or two.</p>
<p><strong>1) Open</strong> a terminal using <code>Ctrl + Alt + T</code>:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-1.png" alt="" border="0" class="centered" /></p>
<p><strong>2) Enter</strong> the following command:</p>
<pre><code>sudo visudo</code></code></pre>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-2.png" alt="" border="0" class="centered" /></p>
<p><strong>3) Enter</strong> your password:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-3.png" alt="" border="0" class="centered" /></p>
<div class="c1">
<p><strong>Note:</strong> when you type your password, nothing will happen on the screen. This is normal. As a security feature, Linux does not echo back any indication of the characters you are typing in.</p>
</div>
<p>This will bring up the <code>sudo</code> configuration file in the <code>nano</code> editor. <span class="i1"><strong>Note:</strong> in other versions of Linux (or if Ubuntu has been modified), the configuration file may be opened with a different editor &#8211; in which case, you will need to Google for instructions on using that editor.</span></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-thumb.png" alt="" border="0" class="centered" /></a></p>
<div class="c1">
<p>The command <code>visudo</code> does more than just open the <code>sudo</code> configuration file with the <code>nano</code> editor. It also <u>checks</u> to ensure the configuration file is correct (i.e. it will not let you edit the file and make it invalid). <strong>Note:</strong> you can still edit the file, so <code>sudo</code> becomes unusable, but the configuration file is (technically speaking) valid.</p>
</div>
<p><strong>4) Locate</strong> the line <code>Defaults</code> (highlighted in <span class="i4">yellow</span>) and navigate to the end of it using the arrow / cursor keys on your keyboard (your mouse will not work). <strong>Add</strong> the following:</p>
<pre><code>,timestamp_timeout=0</code></pre>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-thumb.png" alt="" border="0" class="centered" /></a></p>
<div class="c1">
<p>The number tells <code>sudo</code> for many minutes it should grant administrator privileges in this session.</p>
<p>A value of 0 tells <code>sudo</code> to <u>always</u> prompt for a password. Personally, this is the only setting that makes sense for me because if you are momentarily away from your computer, no one else can accidentally (or intentionally) run an administrative command while your <code>sudo</code> privilege is still active.</p>
<p>A positive number tells <code>sudo</code> to grant administrative privileges that that number of minutes. The number must be a whole number: 5, 15, 42, etc. Number like 3.1415 are not valid.</p>
<p>A negative number tells <code>sudo</code> to permanently grant administrative privileges during that session. The only use I see for this is if you want to have to type <code>sudo</code> before administrative commands, but not have to enter the password for subsequent commands.</p>
</div>
<p><strong>5) Save</strong> your changes by pressing <code>Ctrl + O</code>:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-thumb.png" alt="" border="0" class="centered" /></a></p>
<p>You will be prompted to save the file as <code>/etc/sudoers.tmp</code>.</p>
<p><strong>6) Press</strong> <u>Enter</u> to write the changes.</p>
<p><strong>7) Observe</strong> that the changes were written:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-thumb.png" alt="" border="0" class="centered" /></a></p>
<p><strong>8) Exit</strong> <code>visudo</code> by <strong>pressing</strong> <code>Ctrl + X</code>.</p>
<p>Starting a new command line session should pick up the changes you just made.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-change-the-timout-period-for-sudo/">Ubuntu 13.04 &#8211; How to Change the Timout Period for sudo</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.04 &#8211; How to Change the Timeout Period for sudo</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-change-the-timeout-period-for-sudo/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 13 Mar 2013 11:25:43 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[12.04]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 12.04]]></category>
		<category><![CDATA[visudo]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2666</guid>

					<description><![CDATA[<p>This tutorial is for Ubuntu 12.04. It should be the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made. Detailed instructions for opening a command line / terminal can be found here. By default, sudo temporarily grants administrative privileges for 15 minutes. This means the first time [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-change-the-timeout-period-for-sudo/">Ubuntu 12.04 &#8211; How to Change the Timeout Period for sudo</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 12.04.</p>
<p>It should be the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made.</p>
<p>Detailed instructions for opening a command line / terminal can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal">here</a>.</p>
</div>
<p>By default, <code>sudo</code> temporarily grants administrative privileges for 15 minutes. This means the first time you run <code>sudo</code> you will be prompted for your password. For the next 15 minutes, you can run <code>sudo &lt;command&gt;</code> without having to enter a password.</p>
<p>This should be fine for most users because the average user is likely to drop down to a command line to run an administrative command or two rarely.</p>
<p><strong>1) Open</strong> a terminal using <code>Ctrl + Alt + T</code></p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-1.png" alt="" border="0" class="centered"/></p>
<p><strong>2) Enter</strong> the following command:</p>
<pre><code>sudo visudo</code></code></pre>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-2.png" alt="" border="0" class="centered"/></p>
<p><strong>3) Enter</strong> your password:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-3.png" alt="" border="0" class="centered"/></p>
<div class="c1">
<p><strong>Note:</strong> when you type your password, nothing will happen on the screen. This is normal. As a security feature, Linux does not echo back any indication of the characters you are typing in.</p>
</div>
<p>This will bring up the <code>sudo</code> configuration file in the <code>nano</code> editor. <span class="i1"><strong>Note:</strong> in other versions of Linux (or if Ubuntu has been modified), the configuration file may be opened with a different editor &#8211; in which case, you will need to Google for instructions on using that editor.</span></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-thumb.png" alt="" border="0" class="centered"/></a></p>
<div class="c1">
<p>The command <code>visudo</code> does more than just open the <code>sudo</code> configuration file with the <code>nano</code> editor. It also <u>checks</u> to ensure the configuration file is correct (i.e. it will not let you edit the file and make it invalid). <strong>Note:</strong> you can still edit the file, so <code>sudo</code> becomes unusable, but the configuration file is valid.</p>
</div>
<p><strong>4) Locate</strong> the line <code>Defaults</code> (highlighted in <span class="i4">yellow</span>) and navigate to the end of it using the arrow / cursor keys on your keyboard. <strong>Add</strong> the following:</p>
<pre><code>,timestamp_timeout=0</code></pre>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-thumb.png" alt="" border="0" class="centered"/></a></p>
<div class="c1">
<p>The number tells <code>sudo</code> the number of minutes it should grant administrator privileges in this session.</p>
<p>A value of 0 tells <code>sudo</code> to <u>always</u> prompt for a password. Personally, this is the only setting that makes sense for me because if you are momentarily away from your computer, no one else can accidentally (or intentionally) run an administrative command while your <code>sudo</code> privilege is still active.</p>
<p>A positive number tells <code>sudo</code> to grant administrative privileges that that number of minutes. The number must be a whole number: 5, 15, 42, etc. Number like 3.1415 are not valid.</p>
<p>A negative number tells <code>sudo</code> to permanently grant administrative privileges during that session. The only use I see for this is if you want to have to type <code>sudo</code> before administrative commands, but not have to enter the password for subsequent commands.</p>
</div>
<p><strong>5) Save</strong> your changes by pressing <code>Ctrl + O</code>:<br />
<a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-thumb.png" alt="" border="0" class="centered"/></a></p>
<p>You will be prompted to save the file as <code>/etc/sudoers.tmp</code>.</p>
<p><strong>6) Press</strong> <u>Enter</u> to write the changes.</p>
<p><strong>7) Observe</strong> that the changes were written:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-thumb.png" alt="" border="0" class="centered"/></a></p>
<p><strong>8) Exit</strong> <code>visudo</code> by <strong>pressing</strong> <code>Ctrl + X</code>.</p>
<p>Starting a new command line session should pick up the changes you just made.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-change-the-timeout-period-for-sudo/">Ubuntu 12.04 &#8211; How to Change the Timeout Period for sudo</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
