<?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>How To Ubuntu &#187; Security</title>
	<atom:link href="http://howto-ubuntu.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://howto-ubuntu.net</link>
	<description>Focusing on the Long Term Support release -- Lucid 10.04</description>
	<lastBuildDate>Fri, 30 Jul 2010 12:30:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is the sudo command?</title>
		<link>http://howto-ubuntu.net/what-is-the-sudo-command/</link>
		<comments>http://howto-ubuntu.net/what-is-the-sudo-command/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 16:27:54 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[The Basics]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.net/?p=496</guid>
		<description><![CDATA[<p>So, you&#8217;re reading an Ubuntu how to for something, and you come across the sudo command. What in the world is it, and why do you need it? The sudo command is used to allow a regular user to execute a command that requires root privileges.</p>
<p>In addition to the user name you provided at installation, [...]]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;re reading an Ubuntu how to for something, and you come across the <code>sudo</code> command. What in the world is it, and why do you need it? The <code>sudo</code> command is used to allow a regular user to execute a command that requires <em>root</em> privileges.</p>
<p>In addition to the user name you provided at installation, Ubuntu creates a user called <i>root</i>, except it does not give it a password. This user has the power to do <b>anything</b> to your system. It can delete all of your system files, modify them, anything it wants to. For you to login as this <i>root</i> user, you must first assign it a password with which to login. This is pretty much never necessary for most users to do, so I won&#8217;t be explaining how to do that here.</p>
<p><span id="more-496"></span></p>
<p>There are certain tasks you may need to perform that require the <i>root</i> user&#8217;s level of authority. These include installing software, making changes to system configuration files, updating the system, etc. This is where the <code>sudo</code> command comes into play. That command tells Ubuntu that you want to execute whatever follows it, with the authority of the <i>root</i> user, which as you&#8217;ll remember has complete authority over your system. This is a safety feature. What this accomplishes is only giving you the <i>root</i> authority for the execution of that command, and not giving you all the powers of <i>root</i>, thereby turning you loose on your system with way too much power. It&#8217;s much better this way.</p>
<p>For example&#8230;</p>
<ul>
<li>Installing software from the command line&#8230;
<p><code>sudo apt-get install conky</code></p>
<p>You&#8217;ll then have to enter your password, and Ubuntu will execute the command. Without the <code>sudo</code> command, Ubuntu will deny you permission to run that command.</li>
<li>This same basic thing is happening when you are required to enter your password on the desktop. As in when you update your system by clicking on the update notification icon in the taskbar, and selecting install updates from the window that opens.</li>
</ul>
<p>This is just one more thing that makes Ubuntu so nice and secure.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fwhat-is-the-sudo-command%2F&amp;linkname=What%20is%20the%20sudo%20command%3F"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/what-is-the-sudo-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortcut to root command line access while logged in as un-privileged user</title>
		<link>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/</link>
		<comments>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 03:27:03 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[user switcher]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.com/?p=289</guid>
		<description><![CDATA[<p>Let&#8217;s say you&#8217;re logged into your Ubuntu machine as an unprivileged user, meaning that you don&#8217;t have permission to use the sudo command on the command line. As such, you cannot update the system, install a program, or perform other tasks in the terminal that require the sudo command without logging out and then back [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you&#8217;re logged into your Ubuntu machine as an unprivileged user, meaning that you don&#8217;t have permission to use the sudo command on the command line. As such, you cannot update the system, install a program, or perform other tasks in the terminal that require the sudo command without logging out and then back in as the administrative user, or using the User Switcher. This annoys me. So, how do I execute commands in the terminal that require the sudo command while still logged in as the unprivileged user??<br />
<span id="more-289"></span><br />
First off, you&#8217;ll need <strong>ssh</strong>. To make sure you have this installed, login to your administrative account (a step that will soon become unnecessary), open a terminal, and enter&#8230;</p>
<p><code><strong>sudo apt-get install openssh-server openssh-client</strong></code></p>
<p>After this install is finished you can logout, and back in as the unprivileged user.Now you can open a terminal and enter&#8230;</p>
<p><code><strong>ssh [administrative username]@127.0.0.1</strong></code></p>
<p>You&#8217;ll be asked for your password, this is the administrative account&#8217;s password, enter it and press enter. Now, you&#8217;ll have a command line prompt for the administrative user, as if you had logged in as that user and opened a terminal. You can now update the system, or make whatever change you need to make that requires you to enter your sudo password.</p>
<p>A nice time saving trick.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fshortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user%2F&amp;linkname=Shortcut%20to%20root%20command%20line%20access%20while%20logged%20in%20as%20un-privileged%20user"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to lock your screen from the command line</title>
		<link>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/</link>
		<comments>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 23:35:29 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[screensaver]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.com/?p=185</guid>
		<description><![CDATA[<p>This could be very useful to you if you&#8217;re working in the terminal and need to step away for a moment. You can achieve a locked screen, just like when you do it the graphical way, with this command entered at the command line, or cli&#8230;


gnome-screensaver-command --lock

This will instantly launch your screensaver, and lock your [...]]]></description>
			<content:encoded><![CDATA[<p>This could be very useful to you if you&#8217;re working in the terminal and need to step away for a moment. You can achieve a locked screen, just like when you do it <a href="http://howto-ubuntu.com/2008/11/20/how-to-lock-your-screen/">the graphical way</a>, with this command entered at the command line, or cli&#8230;<br />
<span id="more-185"></span><br />
<br clear="none" /><br />
<code>gnome-screensaver-command --lock</code><br />
<br clear="none" /><br />
This will instantly launch your screensaver, and lock your computer&#8217;s screen. Your password will be required to gain access to your system once this is activated.</p>
<p>That command is pretty long, and typing it out would probably get on my nerves. You can use an alias to effectively shorten it. Here&#8217;s how we&#8217;ll do that, also at the command line&#8230;</p>
<p>Let&#8217;s say we want to be able to type in <em><strong>lock</strong></em>, to lock the screen. If I just type in lock, I get nothing. So I need to create an alias for this command. An alias is just like what it sounds like. It&#8217;s assigning another name to a certain command. At the command line enter&#8230;</p>
<p><code>gedit .bashrc</code><br />
<br clear="none" /><br />
There&#8217;s a certain section of this file that talks about aliases. You can add this line of text to that section of the file&#8230;<br />
<br clear="none" /><br />
<code>alias lock='gnome-screensaver-command --lock'</code><br />
<br clear="none" /><br />
This tells Ubuntu that when you type in <em><strong>lock</strong></em>, it executes <em><strong>gnome-screensaver-command &#8211;lock</strong></em>. Click the Save button and close the text editor. The next time you login, the change will have taken effect. Try it out and see how you like it.</p>
<p>Here&#8217;s what it should look like&#8230;</p>
<p><img class="alignleft size-full wp-image-192" title="screenshot-bashrc-gedit" src="http://howtoubuntu.files.wordpress.com/2008/12/screenshot-bashrc-gedit.png" alt="screenshot-bashrc-gedit" width="500" height="322" /></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fhow-to-lock-your-screen-from-the-command-line%2F&amp;linkname=How%20to%20lock%20your%20screen%20from%20the%20command%20line"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Blocking websites using the hosts file</title>
		<link>http://howto-ubuntu.net/blocking-websites-using-the-hosts-file/</link>
		<comments>http://howto-ubuntu.net/blocking-websites-using-the-hosts-file/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 03:11:32 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://howtoubuntu.wordpress.com/?p=114</guid>
		<description><![CDATA[<p>Let&#8217;s say you want to block certain websites. Maybe to keep your kids off of myspace, for security reasons, or to block advertising from being loaded. You can do this by means of your hosts file. By modifying that little file, you can keep certain websites from being accessed from your computer. Here&#8217;s how to [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you want to block certain websites. Maybe to keep your kids off of myspace, for security reasons, or to block advertising from being loaded. You can do this by means of your <a href="http://en.wikipedia.org/wiki/Hosts_file">hosts file</a>. By modifying that little file, you can keep certain websites from being accessed from your computer. Here&#8217;s how to do it&#8230;</p>
<p><span id="more-114"></span></p>
<p>First of all, you must be logged in as a user with administrative privileges.</p>
<p>Then you need to open a text editor with administrative rights. Here&#8217;s a simple way to do it.</p>
<p style="padding-left:30px;"><strong>Hit <em>ALT+F2</em> to open a &#8216;Run Application&#8217; dialog box.</strong></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;"><strong>Type in&#8230; <em>gksudo gedit /etc/hosts</em></strong></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;"><strong>Press Enter, &amp; type in your password, and the file will open.</strong></p>
<p style="padding-left:30px;">
<p>Add one line to the end of the file for each site you want to block, like this&#8230;</p>
<p style="padding-left:30px;"><strong>0.0.0.0 www.example.com</strong></p>
<p style="padding-left:30px;">
<p>Note that there is a space between the 0.0.0.0 &amp; the web site address. This will tell you computer to look for www.example.com at the ip address of 0.0.0.0. It won&#8217;t be there of course, and they won&#8217;t be able to get to the website. This can be done with any site, and with any number of sites. Just keep adding lines to that file. Once you&#8217;re finished modifying the file, click the <strong>Save</strong> button. The changes will take effect upon your next boot up, and the changes will affect every user on the computer. You can even find pre-made hosts file online that will block a lot of advertising that pops up while online.</p>
<p>Here&#8217;s what the file should look like if you want to block MySpace &amp; Worldcat&#8230;</p>
<p><a href="http://howtoubuntu.files.wordpress.com/2008/11/hosts.png"><img class="alignnone size-full wp-image-116" title="hosts" src="http://howtoubuntu.files.wordpress.com/2008/11/hosts.png" alt="hosts" width="457" height="518" /></a></p>
<p>If you type a line that begins with a &#8220;#&#8221;, the computer will ignore that line, like my line &#8220;# Blocked web sites by How To Ubuntu&#8221;</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fblocking-websites-using-the-hosts-file%2F&amp;linkname=Blocking%20websites%20using%20the%20hosts%20file"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/blocking-websites-using-the-hosts-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to lock your screen</title>
		<link>http://howto-ubuntu.net/how-to-lock-your-screen/</link>
		<comments>http://howto-ubuntu.net/how-to-lock-your-screen/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 04:30:41 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[screensaver]]></category>

		<guid isPermaLink="false">http://howtoubuntu.wordpress.com/?p=92</guid>
		<description><![CDATA[<p>Locking your screen when you&#8217;re away from your computer is very important when there are other people around. You don&#8217;t want anyone messing around on your computer. In Ubuntu you can lock your screen very easily. Once your screen is locked, it will immediately start the screensaver. When someone tries to use the mouse or [...]]]></description>
			<content:encoded><![CDATA[<p>Locking your screen when you&#8217;re away from your computer is very important when there are other people around. You don&#8217;t want anyone messing around on your computer. In Ubuntu you can lock your screen very easily. Once your screen is locked, it will immediately start the screensaver. When someone tries to use the mouse or keyboard they are prompted for a password. If they don&#8217;t have the password, they can&#8217;t access your machine. This password is the same one you use to login with. Here&#8217;s how to lock your screen&#8230;</p>
<p><span id="more-92"></span></p>
<p>The quickest and easiest way to do this is to simply hit <strong>CTRL+ALT+L</strong>. This will automatically lock your screen, and start the screensaver. If, however, you don&#8217;t want to use that keyboard combination, there are other ways to do this. In this case, you&#8217;ll need to bring up this box, and choose the <strong>Lock Screen</strong> option.</p>
<p><a href="http://howtoubuntu.files.wordpress.com/2008/11/screenshot.png"><img class="alignnone size-medium wp-image-93" title="screenshot" src="http://howtoubuntu.files.wordpress.com/2008/11/screenshot.png?w=300" alt="screenshot" width="300" height="203" /></a></p>
<p>You can bring this box up a few different ways. You can also hit <strong>CTRL+ALT+DEL</strong>, or you can go to the <strong>System </strong>menu and select<strong> Quit</strong>, or you can click on the Exit icon on the taskbar. If someone tries to wake your computer up from the screensaver, this is what they&#8217;ll see&#8230;</p>
<p><a href="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-1.png"><img class="alignnone size-medium wp-image-94" title="screenshot-1" src="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-1.png?w=300" alt="screenshot-1" width="300" height="209" /></a></p>
<p>If they don&#8217;t have your password, they won&#8217;t get into your system. They can login as a different user, and this won&#8217;t affect what you&#8217;re doing. When that other user logs out, the machine will just go back to yourscreensaver. Another nice little feature is the ability for someone to leave you a message when your machine is locked. All they have to do is click the <strong>Leave Message</strong> box after they wake it from the screensaver. They type their message, hit <strong>Save</strong>, and leave. When you come back &amp; login, that message is displayed in the lower right hand corner of the screen until you close it. Very cool!</p>
<p><a href="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-3.png"><img class="alignnone size-full wp-image-95" title="screenshot-3" src="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-3.png" alt="screenshot-3" width="500" height="312" /> Notice the non-darkened area</a></p>
<p><a href="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-3.png"></a><a href="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-4.png"><img class="alignnone size-full wp-image-98" title="screenshot-41" src="http://howtoubuntu.files.wordpress.com/2008/11/screenshot-41.png" alt="screenshot-41" width="310" height="61" />Zoomed in view</a></p>
<p>[digg=http://digg.com/linux_unix/How_to_lock_your_screen_in_Ubuntu]</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fhow-to-lock-your-screen%2F&amp;linkname=How%20to%20lock%20your%20screen"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/how-to-lock-your-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install rkhunter, root kit detection software</title>
		<link>http://howto-ubuntu.net/install-rkhunter-root-kit-detection-software/</link>
		<comments>http://howto-ubuntu.net/install-rkhunter-root-kit-detection-software/#comments</comments>
		<pubDate>Fri, 16 May 2008 22:31:31 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[rkhunter]]></category>

		<guid isPermaLink="false">http://howtoubuntu.wordpress.com/?p=8</guid>
		<description><![CDATA[<p>A rootkit is a program (or combination of several programs) designed to take  control of a computer system, without authorization.  It assumes administrative, or root level control of the system.  This control isn&#8217;t taken for your benefit, it&#8217;s malicious.  Antivurs software might not get these little buggers, so root kit detection software comes in. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">A rootkit is a program (or combination of several programs) designed to take  control of a computer system, without authorization.  It assumes administrative, or root level control of the system.  This control isn&#8217;t taken for your benefit, it&#8217;s malicious.  Antivurs software might not get these little buggers, so root kit detection software comes in.  This one, </span><em><strong><span style="color:#000000;">rkhunter</span></strong></em><span style="color:#000000;">, will search for them, find them, and then do whatever you want with them. </span><span id="more-8"></span><span style="color:#000000;">Here&#8217;s how to get it.  Open a terminal and enter&#8230;</span></p>
<p><span style="color:#000000;"> </span></p>
<p><span style="color:#000000;">code</span></p>
<p><span style="color:#000000;"> </span></p>
<p><strong><em><span style="color:#000000;">sudo apt-get install rkhunter</span></em></strong></p>
<p><span style="color:#000000;"> </span></p>
<p><span style="color:#000000;">That&#8217;ll download &amp; install the software.  It gets run from the command line, and you can see how to use it by executing the help feature&#8230;</span></p>
<p><span style="color:#000000;"> </span></p>
<p><span style="color:#000000;">code</span></p>
<p><span style="color:#000000;"> </span></p>
<p><strong><em><span style="color:#000000;">rkhunter</span></em></strong></p>
<p><span style="color:#000000;"> </span></p>
<p><span style="color:#000000;">You will also want to update it&#8217;s definitions file&#8230;</span></p>
<p><span style="color:#000000;"> </span></p>
<p><span style="color:#000000;">code</span></p>
<p><span style="color:#000000;"> </span></p>
<p><em><strong><span style="color:#000000;">sudo rkhunter &#8211; -update</span></strong></em></p>
<p>Now you have an up to date, root kit detection application.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Finstall-rkhunter-root-kit-detection-software%2F&amp;linkname=Install%20rkhunter%2C%20root%20kit%20detection%20software"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/install-rkhunter-root-kit-detection-software/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
