<?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>The Linux Noob &#187; Linux</title>
	<atom:link href="http://thelinuxnoob.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin' issues one ticket at a time!</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:51:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>cPHulk Brute Force Detection</title>
		<link>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/</link>
		<comments>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:48:22 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=149</guid>
		<description><![CDATA[Ever run into issues with typing in your root password, or forgot what you set it to, then got locked out of WHM? Well, here&#8217;s a quick and easy way to get your access back when receiving this error message. This account is currently locked out because a brute force attempt  was detected. Please wait]]></description>
			<content:encoded><![CDATA[<p>Ever run into issues with typing in your root password, or forgot what you set it to, then got locked out of WHM? Well, here&#8217;s a quick and easy way to get your access back when receiving this error message.</p>
<blockquote><p>This account is currently locked out because a brute force attempt  was detected. Please wait 10 minutes and try again. Attempting to login again will only increase this delay. If you frequently experience this problem, we recommend having your username changed to something less generic.</p></blockquote>
<p>Run the following as root in SSH.</p>
<pre dir="ltr">mysql cphulkd
mysql&gt; delete from brutes;
mysql&gt; delete from logins;</pre>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few OpenVZ commands</title>
		<link>http://thelinuxnoob.com/linux/a-few-openvz-commands/</link>
		<comments>http://thelinuxnoob.com/linux/a-few-openvz-commands/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:16:18 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[openvz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=138</guid>
		<description><![CDATA[Below are the commonly used OpenVZ commands, which are run from the main node. vzlist -a Shows list of all the VPS’s hosted on the Node. vzctl start VEID To start the VPS vzctl stop VEID To stop (Shut Down) the VPS vzctl status VEID To view the status of the particular VPS vzctl stop]]></description>
			<content:encoded><![CDATA[<p>Below are the commonly used OpenVZ commands, which are run from the main node.</p>
<p><strong>vzlist -a</strong><br />
Shows list of all the VPS’s hosted on the Node.</p>
<p><strong>vzctl start VEID</strong><br />
To start the VPS</p>
<p><strong>vzctl stop VEID</strong><br />
To stop (Shut Down) the VPS</p>
<p><strong>vzctl status VEID</strong><br />
To view the status of the particular VPS</p>
<p><strong>vzctl stop VEID –fast</strong><br />
To stop the VPS quickly and forcefully</p>
<p><strong>vzctl enter VEID</strong><br />
To enter in a particular VPS</p>
<p><strong>vzctl set VEID –hostname vps.domain.com –save</strong><br />
To set the Hostname of a VPS</p>
<p><strong>vzctl set VEID –ipadd 1.2.3.4 –save</strong><br />
To add a new IP to the hosting VPS</p>
<p><strong>vzctl set VEID –ipdel 1.2.3.4 –save</strong><br />
To delete the IP from VPS</p>
<p><strong>vzctl set VEID –userpasswd root:new_password –save</strong><br />
To reset root password of a VPS</p>
<p><strong>vzctl set VEID –nameserver 1.2.3.4 –save</strong><br />
To add the nameserver IP’s to the VPS</p>
<p><strong>vzctl exec VEID command</strong><br />
To run any command on a VPS from Node</p>
<p><strong>vzyum VEID install package_name </strong><br />
To install any package/Software on a VPS from Node</p>
<p>**VEID refers to the ID of the Particular VPS**</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/a-few-openvz-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session.save_path error</title>
		<link>http://thelinuxnoob.com/linux/session-save_path-error/</link>
		<comments>http://thelinuxnoob.com/linux/session-save_path-error/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 10:28:27 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php.ini]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[session.save_path]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=71</guid>
		<description><![CDATA[So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script. The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify]]></description>
			<content:encoded><![CDATA[<p>So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script.</p>
<blockquote><p>The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.</p></blockquote>
<p>It&#8217;s a pretty simple fix in the servers php.ini.<span id="more-71"></span> First thing you need to do is locate your servers copy of the php.ini by running the following command via SSH.</p>
<blockquote><p>root@lolwut [~]# php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini<br />
root@lolwut [~]#</p></blockquote>
<p>Once you&#8217;ve found the php.ini, use your favorite editor and locate the following line.</p>
<blockquote><p>root@lolwut [~]# grep &#8216;session.save_path&#8217; /usr/local/lib/php.ini<br />
;     session.save_path = &#8220;N;/path&#8221;<br />
;session.save_path = /tmp<br />
;       (see session.save_path above), then garbage collection does *not*<br />
root@lolwut [~]#</p></blockquote>
<p>In this case, simply remove &#8220;;&#8221; which will uncomment the line. If you are missing the &#8220;/tmp&#8221; part of the line, you will need to add it. Make these changes and save the file, then restart apache and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/session-save_path-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install fantastico on cPanel</title>
		<link>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/</link>
		<comments>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:07:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[fantastico]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[makecpphp]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=51</guid>
		<description><![CDATA[A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from Netenburg. One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may]]></description>
			<content:encoded><![CDATA[<p>A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from <a href="http://www.netenberg.com/fantastico.php" target="_blank">Netenburg</a>.</p>
<p>One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may break, but we will discuss the fix to that later on. <span id="more-51"></span>To install the working version of wget run the following commands:</p>
<blockquote><p>rpm -qa wget ;<br />
wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm<br />
chattr -ia /usr/bin/wget<br />
rpm -e wget ;<br />
rpm -ivh &#8211;force wget-1.10.2-3.2.1.i386.rpm ;<br />
rpm -qa wget ;</p></blockquote>
<p>First thing is downloading the Fantastico files to the server.</p>
<blockquote><p>/scripts/upcp<br />
cd /usr/local/cpanel/whostmgr/docroot/cgi<br />
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz<br />
tar -xzpf fantastico_whm_admin.tgz<br />
rm -rf fantastico_whm_admin.tgz</p></blockquote>
<p>Once the files have been downloaded, log into WHM with your root account and select <strong>&#8220;F</strong>antastico De Luxe WHM Admin&#8221; under the plugin section on the left side of WHM at the bottom.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantstico side" src="/tutorials/fantastico/1.jpg" alt="" width="201" height="96" /></p>
<p><!-- br--><br />
You will then go the Fantastico main page, where you will select &#8220;Click here&#8221; under &#8216;Version Information&#8217; in the middle. Now select the stable version from the drop down menu.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantastico tut" src="/tutorials/fantastico/2.jpg" alt="" width="360" height="154" /></p>
<p><!-- br--><br />
Now follow the remaining steps using the default information, as all of it should be correct, though you may want to double check. Be sure to select &#8220;enable&#8221; next to suexec if it is installed on the server and also check the VPS section if you have installed this on a VPS.</p>
<p>If you receive cpanel_phpengine errors when logged into Fantastico as end user, run the following command via SSH.</p>
<blockquote>
<p style="text-align: left;">/scripts/makecpphp</p>
</blockquote>
<p>You may also run into an ioncube error when trying to log into Fantastico, which can be fixed by logging into WHM as root -&gt; Tweak Settings -&gt; Loader to use for internal cPanel PHP -&gt; IonCube -&gt; Save</p>
<p>If you have any issues with your install, feel free to comment this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Exim Error: Ratelimit database not available</title>
		<link>http://thelinuxnoob.com/linux/ratelimit-database-not-available/</link>
		<comments>http://thelinuxnoob.com/linux/ratelimit-database-not-available/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:17:50 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail Issues]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[ratelimit]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=44</guid>
		<description><![CDATA[2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out 2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available To fix such an error , the exim cache database on the server side needs to be clear off to stop this message. Run the folllowing command on root : root@lolwut]]></description>
			<content:encoded><![CDATA[<div>
<p>2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out<br />
2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available</p>
<p>To fix such an error , the exim cache database on the server side needs to be clear off to stop this message.<span id="more-44"></span></p>
<p>Run the folllowing command on root :</p>
<blockquote><p>root@lolwut [~]# rm -fv /var/spool/exim/db/*</p></blockquote>
<p>Output :</p>
<blockquote><p>removed `/var/spool/exim/db/ratelimit’<br />
removed `/var/spool/exim/db/ratelimit.lockfile’<br />
removed `/var/spool/exim/db/retry’<br />
removed `/var/spool/exim/db/retry.lockfile’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp.lockfile’<br />
removed `/var/spool/exim/db/wait-remote_smtp’<br />
removed `/var/spool/exim/db/wait-remote_smtp.lockfile’</p></blockquote>
<p>Then run the following command on root:</p>
<blockquote><p>root@lolwut [~]# service exim restart</p></blockquote>
<p>If this doesn’t work , then run  /scripts/upcp –force on the server and then check exim_mainlog for the changes.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/ratelimit-database-not-available/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Creating an extracting tar files</title>
		<link>http://thelinuxnoob.com/linux/create-and-extract-tar-files/</link>
		<comments>http://thelinuxnoob.com/linux/create-and-extract-tar-files/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:37:28 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[compress folder]]></category>
		<category><![CDATA[decompress folder]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.gz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=36</guid>
		<description><![CDATA[The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. Tar.gz is a compressed tar file. How to create a compressed tar.gz file from a folder or file in Linux? In order to create a compressed tar.gz archive from a folder/file we need to run]]></description>
			<content:encoded><![CDATA[<p>The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. <a href="http://en.wikipedia.org/wiki/Tar_(file_format)">Tar.gz</a> is a compressed tar file.</p>
<h3>How to create a compressed tar.gz file from a folder or file in Linux?</h3>
<p>In order to create a compressed tar.gz archive from a folder/file we need to run the following tar command:</p>
<p><code>tar -czf new-tar-file-name.tar.gz file-or-folder-to-archive</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>c &#8211; create new archive.</li>
<li>z &#8211; compress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>new-tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
<li>file-or-folder-to-archive &#8211; the name of the folder we want to archive.</li>
</ul>
<h3><span id="more-36"></span></h3>
<h3>How to create a compressed tar.gz file from multiple files and folders in Linux?</h3>
<p>In order to create a compressed tar.gz file from multiple files or/and folders we need to run the same tar command we used when we archived a single file/folder and to append the rest of the files/folders&#8217; names to it.</p>
<p><code>tar -czf new-tar-file-name.tar.gz file1 file2 folder1 folder2</code></p>
<h3>How to extract a compressed tar.gz file in Linux?</h3>
<p><code>tar -xzf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>z &#8211; uncompress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
<h3>How to extract a compressed tar.bz2 file in Linux?</h3>
<p>Extracting tar.bz2 (bzip2 file) is very similar to the way you extract tar.gz file. Instead of using the -z flag you need to use the -j flag for the bzip2 format</p>
<p><code>tar -xjf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>j - filter the archive through bzip2</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/create-and-extract-tar-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>pty, ptyp, and tty errors</title>
		<link>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/</link>
		<comments>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:49:31 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=25</guid>
		<description><![CDATA[So I came across this error for the first time today when trying to SSH directly into a clients VPS. login as: root root@server&#8217;s password: Server refused to allocate pty stdin: is not a tty After a quick google search I came across the fix. [root@node /]# vzlist -a VEID      NPROC STATUS  IP_ADDR         HOSTNAME 1337]]></description>
			<content:encoded><![CDATA[<p>So I came across this error for the first time today when trying to SSH directly into a clients VPS.</p>
<blockquote><p>login as: root<br />
root@server&#8217;s password:<br />
Server refused to allocate pty<br />
stdin: is not a tty</p></blockquote>
<p>After a quick google search I came across the fix.</p>
<blockquote><p>[root@node /]# vzlist -a<br />
VEID      NPROC STATUS  IP_ADDR         HOSTNAME<br />
1337         78 running 69.10.59.80     grumpy.thelinuxnoob.com<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV ptyp<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV tty<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV pty</p></blockquote>
<p>The issue should now be resolved and you can SSH into the VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Perl</title>
		<link>http://thelinuxnoob.com/linux/install-perl/</link>
		<comments>http://thelinuxnoob.com/linux/install-perl/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:54:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=21</guid>
		<description><![CDATA[Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete. wget http://layer1.cpanel.net/perl588installer.tar.gz tar -xvzf perl588installer.tar.gz cd perl588installer ./install]]></description>
			<content:encoded><![CDATA[<p>Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete.</p>
<blockquote><p>wget http://layer1.cpanel.net/perl588installer.tar.gz<br />
tar -xvzf perl588installer.tar.gz<br />
cd perl588installer<br />
./install</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade MySQL4 to MySQL5 on cPanel server</title>
		<link>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/</link>
		<comments>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 03:22:01 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=18</guid>
		<description><![CDATA[Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises. cp -Rpf /var/lib/mysql /var/lib/mysql.BAK Login to WHM –&#62; Tweak Settings –&#62; MySQL -&#62; 5.0  and Save settings /scripts/mysqlup &#8211;force]]></description>
			<content:encoded><![CDATA[<p>Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises.</p>
<blockquote><p>cp -Rpf /var/lib/mysql /var/lib/mysql.BAK<br />
Login to WHM –&gt; Tweak Settings –&gt; MySQL -&gt; 5.0  and Save settings<br />
/scripts/mysqlup &#8211;force<br />
/scripts/perlinstaller &#8211;force Bundle::DBD::mysql<br />
/scripts/realperlinstaller &#8211;force DBD::mysql<br />
Recompile PHP</p></blockquote>
<p>You&#8217;re done <img src='http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable root SSH access</title>
		<link>http://thelinuxnoob.com/linux/disable-root-ssh-access/</link>
		<comments>http://thelinuxnoob.com/linux/disable-root-ssh-access/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 02:38:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=16</guid>
		<description><![CDATA[Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to have to guess 2 seperate passwords to gain root access. (you do have 2 seperate]]></description>
			<content:encoded><![CDATA[<p>Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue.</p>
<p>This will force a hacker to have to guess 2 seperate passwords to gain root access.<br />
(you do have 2 seperate passwords for admin and root right?)<br />
What happens is you’ll first need to login as your <em>admin </em>user in <abbr title="Secure Shell">SSH</abbr>, then switch to the super user with the <em>su</em> command to get root.</p>
<p>We also will be forcing the use of <abbr title="Secure Shell">SSH</abbr> protocol 2, which is a newer, more secure <abbr title="Secure Shell">SSH</abbr> protocol<br />
Just a couple more ways to help your server stay safe from the bad guys. If you’re using cPanel make sure you add your admin user to the ‘<em>wheel</em>‘ group so that you will be able to ‘<em>su -</em>‘ to root, otherwise you may lock yourself out of root.</p>
<blockquote><p><strong>1.</strong> <abbr title="Secure Shell">SSH</abbr> into your server as ‘<em>admin</em>‘ and gain root access by <em>su</em></p>
<p><strong>2.</strong> Copy and paste this line to edit the file for <abbr title="Secure Shell">SSH</abbr> logins<br />
<em>pico -w /etc/<abbr title="Secure Shell">ssh</abbr>/sshd_config</em></p>
<p><em></em><strong>3.</strong> Find the line<br />
<em>Protocol 2, 1</em></p>
<p><strong>4.</strong> Uncomment it and change it to look like<br />
<em>Protocol 2</em></p>
<p><em></em><strong>5.</strong> Next, find the line<br />
<em>PermitRootLogin yes</em></p>
<p><em></em><strong>6.</strong> Uncomment it and make it look like <em>PermitRootLogin no</em></p>
<p><em></em><strong>7.</strong> Save the file <em>Ctrl+X</em> then <em>Y</em> then <em>enter</em></p>
<p><strong>8.</strong> Now you can restart <abbr title="Secure Shell">SSH</abbr><br />
<em>/etc/rc.d/init.d/sshd restart</em></p></blockquote>
<p><em></em>Now, no one will be able to login to root with out first loggin in as admin and ’su -’ to root, and you will be forcing the use of a more secure protocol. Just make sure you remember both passwords!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/disable-root-ssh-access/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
