 
    
<?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>sudo Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/sudo/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/sudo/</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>
		<item>
		<title>Ubuntu 11.10 &#8211; Understanding sudo apt-get install &#8230;</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-understanding-sudo-apt-get-install/</link>
					<comments>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-understanding-sudo-apt-get-install/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 03:35:08 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 11.10]]></category>
		<category><![CDATA[11.10]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[understanding]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/web-tools/ubuntu-11-10-understanding-sudo-apt-get-install</guid>

					<description><![CDATA[<p>This tutorial is for Ubuntu 11.10, however, it should be the same for other versions of Ubuntu (and derivatives, like edubuntu, kubuntu, lubuntu, and xubuntu) and other Linux distributions based on Debian. However, no guarantee is made. What makes Ubuntu very easy to use is the Ubuntu Software Center which allows users an easy way [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-understanding-sudo-apt-get-install/">Ubuntu 11.10 &#8211; Understanding sudo apt-get install &#8230;</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 11.10, however, it should be the same for other versions of Ubuntu (and derivatives, like edubuntu, kubuntu, lubuntu, and xubuntu) and other Linux distributions based on Debian. </p>
<p>However, no guarantee is made.</p>
</div>
<p>What makes Ubuntu very easy to use is the Ubuntu Software Center which allows users an easy way to select and install or remove packages (usually programs).</p>
<p>However, when you search the web looking for help with Ubuntu, often times you see something to the effect of:</p>
<div class="c2">
<p>Enter the following command:</p>
<p><code>sudo apt-get install lubuntu-desktop</code></div>
<p>While this is clear for those who know what it means, I believe the majority of Ubuntu users are those who want a simple to install and use Linux OS &#8211; they are not interested in lower level details of managing their system.
</p>
<div class="c2">
<p>In most cases, you can enter the package name into the Ubuntu Software Center and install it that way. For example, if you found the instructions: <code>sudo apt-get install lubuntu-core</code> and didn&#8217;t want to use <code>apt-get</code> you could enter <code>lubuntu-core</code> into the search field of Ubuntu Software Center and select the appropriate package from there.</p>
</div>
<h1>Advantages of using apt-get</h1>
<p>When you use the Ubuntu Software Manager, all the details of the installation are hidden from you &#8211; you don&#8217;t know if you are installing just one package or twelve.</p>
<p>Using <code>apt-get</code>, you can see which packages are going to be installed. This also makes it easier to know which packages to uninstall if you uninstall later. </p>
<div class="c2">
<p>A common complaint about Microsoft Windows is that applications often install a lot of junk that is not removed when the application is uninstalled. Ubuntu isn&#8217;t any better in this regard. This is because installers and uninstallers are hard to write &#8211; when you uninstall you don&#8217;t want to accidentally remove packages or files that some other application is using, so uninstallers tend to be conservative and leave stuff behind.</p>
</div>
<p>Another advantage of using <code>apt-get</code> instead of the Ubuntu Software Center is that <code>apt-get</code> allows you to install multiple packages with a single command. With the Ubuntu Software Center you need to install each package separately.</p>
<p>For example, if I want to install the astronomy packages <u>Stellarium </u>and <u>Celestia GNOME</u> using the Ubuntu Software Center, I need to install each separately. Using <code>apt-get</code>, I can install both from the same command by separating them with a space:</p>
<p><pre>sudo apt-get install stellarium celestia-gnome</pre>
<h1>What it is</h1>
<p>The command is really two commands:</p>
<ol>
<li><code>sudo</code> &#8211; a command to grant <strong>s</strong>uper <strong>u</strong>ser access to the system. Ubuntu is configured to prevent administrative (or system level) changes to the operating system. This is a security measure. <code>sudo</code> allows a user to temporarily override this behaviour.</li>
<li><code>apt-get</code> &#8211; the <strong>A</strong>dvanced <strong>P</strong>ackaging <strong>T</strong>ool which allows users to install, remove, and update packages on their system.</li>
</ol>
<h1>Using apt-get</h1>
<div class="c3">
<p>Instructions on how to open a terminal can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal">here</a>.</p>
</div>
<p>1<strong>) Type</strong> the command and press <u>Enter</u> (in this case, I am installing the package <code>stellarium</code>):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-4.jpg" width="480" height="94" alt="" border="0" class="centered"/></p>
<p><strong>2) Type</strong> your password and press <u>Enter</u>. <span class="i1">Note: as a security measure, your keystrokes are not echoed back to you. You will be typing, but see no feedback on the screen. While weird, this is normal.</span></p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-5.jpg" width="480" height="80" alt="" border="0" class="centered"/></p>
<p><strong>3) Examine</strong> the install information (if you like):</p>
<p><img fetchpriority="high" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-6.jpg" width="480" height="188" alt="" border="0" class="centered"/></p>
<p>The install information shows you the following:</p>
<ul>
<li>Any extra packages that will be installed along with the selected package (yellow)</li>
<li>The list of packages to be installed this includes the package you are installing along with any extra packages needed (green)</li>
<li>A summary of (1) number of packages being upgraded, (2) number of new packages being installed, (3) number of packages being removed, (4) number of packages that are unaffected (red)</li>
<li>How large the download will be (blue)</li>
<li>How much disk space will be used by the installation (grey)</li>
</ul>
<div class="c2">
<p><code>apt-get</code> <em>may </em>display additional information, but, for this tutorial, it is not relevant.</p>
</div>
<p>4) If you want to go ahead with the installation, press <u>Enter</u>. If you changed your mind, type <u>n</u> (upper or lower case &#8211; it doesn&#8217;t matter) and press <u>Enter</u>,</p>
<p><strong>5) Wait</strong> for the installation to finish. During installation, you will see downloading information and installation information:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-7.jpg" width="480" height="276" alt="" border="0" class="centered"/><br />
</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-understanding-sudo-apt-get-install/">Ubuntu 11.10 &#8211; Understanding sudo apt-get install &#8230;</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-understanding-sudo-apt-get-install/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
