<?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>Ubuntu Tutorials</title>
	<atom:link href="http://www.ubuntututorials.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntututorials.net</link>
	<description>Copy/Paste tutorials for Ubuntu</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install mod_spamhaus Apache module to fight comment spam</title>
		<link>http://www.ubuntututorials.net/install-mod-spamhaus-apache-module-to-fight-comment-spam/</link>
		<comments>http://www.ubuntututorials.net/install-mod-spamhaus-apache-module-to-fight-comment-spam/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 20:58:02 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamhaus]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=53</guid>
		<description><![CDATA[mod_spamhaus is an Apache module for DNS Block Listing that protects web services by denying access to particular IP addresses. It can stop spam relaying via web form URL injection, and block HTTP DDoS attacks from bot-nets.
It queries sbl-xbl.spamhaus.org, taking advantage of the Spamhaus Block List (SBL) and the Exploits Block List (XBL). 
1. Install [...]]]></description>
			<content:encoded><![CDATA[<p>mod_spamhaus is an Apache module for DNS Block Listing that protects web services by denying access to particular IP addresses. It can stop spam relaying via web form URL injection, and block HTTP DDoS attacks from bot-nets.</p>
<p>It queries sbl-xbl.spamhaus.org, taking advantage of the Spamhaus Block List (SBL) and the Exploits Block List (XBL). </p>
<p>1. Install the package</p>
<p><code>apt-get install libapache2-mod-spamhaus<br />
</code><span id="more-53"></span></p>
<p>Apache is automatically restarted and the module is enabled. If you would like to test the module you can add a line to your hosts file to make it think that your IP address is blocked (pico /etc/hosts)</p>
<p><code>127.0.0.4 1.0.168.192.sbl-xbl.spamhaus.org<br />
</code></p>
<p><em>Replace 1.0.168.192 with your IP address and reverse it. The IP address 192.168.0.1 should read 1.0.168.192.</em></p>
<p>By default, only POST, PUT, OPTIONS, CONNECT methods are blocked. You can add GET to the list of methods blocked in /etc/apache2/mods-enabled/mod-spamhaus.conf to block the spammers from seeing your website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/install-mod-spamhaus-apache-module-to-fight-comment-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing ionCube</title>
		<link>http://www.ubuntututorials.net/installing-ioncube/</link>
		<comments>http://www.ubuntututorials.net/installing-ioncube/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 21:07:58 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=47</guid>
		<description><![CDATA[ionCube protects software written using the PHP programming language from being viewed, changed, and run on unlicensed computers.
1. Download ionCube loaders
sudo wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

2. Extract
sudo tar zxvf ioncube_loaders_lin_x86.tar.gz

3. Move to a permanent location
sudo mv ioncube /usr/local/

4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini)
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so

There are a few versions of the loader in the [...]]]></description>
			<content:encoded><![CDATA[<p>ionCube protects software written using the PHP programming language from being viewed, changed, and run on unlicensed computers.</p>
<p>1. Download ionCube loaders</p>
<p><code>sudo wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz<br />
</code><span id="more-47"></span></p>
<p>2. Extract</p>
<p><code>sudo tar zxvf ioncube_loaders_lin_x86.tar.gz<br />
</code></p>
<p>3. Move to a permanent location</p>
<p><code>sudo mv ioncube /usr/local/<br />
</code></p>
<p>4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini)</p>
<p><code>zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so<br />
</code></p>
<p><em>There are a few versions of the loader in the tar archive. Use the one that matches your PHP version.</em></p>
<p>5. Restart apache</p>
<p><code>sudo /etc/init.d/apache2 restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-ioncube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Zend Optimizer</title>
		<link>http://www.ubuntututorials.net/installing-zend-optimizer/</link>
		<comments>http://www.ubuntututorials.net/installing-zend-optimizer/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 10:14:52 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=44</guid>
		<description><![CDATA[The Zend Optimizer enables you to run Zend Guard encoded files.
1. Download a copy of Zend Optimizer / Guard from the location below and put it into /tmp
http://www.zend.com/en/products/guard/downloads

2. Extract
cd /tmp
sudo tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

Replace with your actual filename
3. Create a directory to contain Zend optimizer
sudo mkdir /usr/local/lib/Zend

3. Move the Zend optimizer lib to a permanent location
sudo [...]]]></description>
			<content:encoded><![CDATA[<p>The Zend Optimizer enables you to run Zend Guard encoded files.</p>
<p>1. Download a copy of Zend Optimizer / Guard from the location below and put it into /tmp</p>
<p><code>http://www.zend.com/en/products/guard/downloads<br />
</code><span id="more-44"></span></p>
<p>2. Extract</p>
<p><code>cd /tmp<br />
sudo tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz<br />
</code></p>
<p><em>Replace with your actual filename</em></p>
<p>3. Create a directory to contain Zend optimizer</p>
<p><code>sudo mkdir /usr/local/lib/Zend<br />
</code></p>
<p>3. Move the Zend optimizer lib to a permanent location</p>
<p><code>sudo mv ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /usr/local/lib/Zend/<br />
</code></p>
<p><em>Your ZendOptimizer directory name may be different since it includes version numbers and platform. I'm using the 5_2_x_comp directory because I have PHP 5.2 installed.</em></p>
<p>4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini)</p>
<p><code>zend_extension = /usr/local/lib/Zend/ZendOptimizer.so<br />
zend_optimizer.optimization_level = 15<br />
</code></p>
<p>5. Restart apache</p>
<p><code>sudo /etc/init.d/apache2 restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-zend-optimizer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable root login to SSH</title>
		<link>http://www.ubuntututorials.net/disable-root-login-to-ssh/</link>
		<comments>http://www.ubuntututorials.net/disable-root-login-to-ssh/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:16:46 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=41</guid>
		<description><![CDATA[Allowing root logins to your SSH damon is a big security threat. If the SSH port is open, hackers will probably at some time attempt to brute force your root password. It's a good idea to disable root logins to SSH and instead use a normal user to login and use sudo to perform tasks [...]]]></description>
			<content:encoded><![CDATA[<p>Allowing root logins to your SSH damon is a big security threat. If the SSH port is open, hackers will probably at some time attempt to brute force your root password. It's a good idea to disable root logins to SSH and instead use a normal user to login and use sudo to perform tasks that require root privileges.</p>
<p>1. Open the SSH daemon config file and change this line: (sudo pico /etc/ssh/sshd_config)</p>
<p><code>PermitRootLogin no<br />
</code><span id="more-41"></span></p>
<p>2. Restart the SSH daemon</p>
<p><code>sudo /etc/init.d/ssh restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/disable-root-login-to-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PowerDNS on Karmic Koala</title>
		<link>http://www.ubuntututorials.net/installing-powerdns-on-karmic-koala/</link>
		<comments>http://www.ubuntututorials.net/installing-powerdns-on-karmic-koala/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 09:38:31 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[pdns]]></category>
		<category><![CDATA[powerdns]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=32</guid>
		<description><![CDATA[The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.
1. Install the PowerDNS server and MySql backend using apt
sudo apt-get install pdns-server pdns-backend-mysql

2. Create a new database (or use existing) and execute the [...]]]></description>
			<content:encoded><![CDATA[<p>The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.</p>
<p>1. Install the PowerDNS server and MySql backend using apt</p>
<p><code>sudo apt-get install pdns-server pdns-backend-mysql<br />
</code><span id="more-32"></span></p>
<p>2. Create a new database (or use existing) and execute the following SQL queries to create the PowerDNS table structure:</p>
<p><code>create table domains (<br />
id		 INT auto_increment,<br />
name		 VARCHAR(255) NOT NULL,<br />
master		 VARCHAR(128) DEFAULT NULL,<br />
last_check	 INT DEFAULT NULL,<br />
type		 VARCHAR(6) NOT NULL,<br />
notified_serial INT DEFAULT NULL,<br />
account         VARCHAR(40) DEFAULT NULL,<br />
primary key (id)<br />
)type=InnoDB;<br />
&nbsp;<br />
CREATE UNIQUE INDEX name_index ON domains(name);<br />
&nbsp;<br />
CREATE TABLE records (<br />
id              INT auto_increment,<br />
domain_id       INT DEFAULT NULL,<br />
name            VARCHAR(255) DEFAULT NULL,<br />
type            VARCHAR(6) DEFAULT NULL,<br />
content         VARCHAR(255) DEFAULT NULL,<br />
ttl             INT DEFAULT NULL,<br />
prio            INT DEFAULT NULL,<br />
change_date     INT DEFAULT NULL,<br />
primary key(id)<br />
)type=InnoDB;<br />
&nbsp;<br />
CREATE INDEX rec_name_index ON records(name);<br />
CREATE INDEX nametype_index ON records(name,type);<br />
CREATE INDEX domain_id ON records(domain_id);<br />
&nbsp;<br />
create table supermasters (<br />
ip VARCHAR(25) NOT NULL,<br />
nameserver VARCHAR(255) NOT NULL,<br />
account VARCHAR(40) DEFAULT NULL<br />
);<br />
</code></p>
<p>3. Configure PowerDNS to use the MySql backend by adding this line into the configuration file (sudo pico /etc/powerdns/pdns.conf)</p>
<p><code>launch=gmysql<br />
</code></p>
<p>4. Configure MySql login information for the PowerDNS server that can read from the tables you created earlier by adding lines similar to these (sudo pico /etc/powerdns/pdns.d/pdns.local)</p>
<p><code>gmysql-host=127.0.0.1<br />
gmysql-user=pdns<br />
gmysql-password=password<br />
gmysql-dbname=pdns<br />
</code></p>
<p><em>Replace the username, password and dbname with a valid login information and database name.</em></p>
<p>5. Restart PowerDNS</p>
<p><code>sudo /etc/init.d/pdns restart<br />
</code></p>
<p>Now you should have a fully functional PowerDNS server installed. To manage the database (adding zones and records), consider using the <a href="http://www.poweradmin.org">Poweradmin</a> web-based administration tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-powerdns-on-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a sudoer (user allowed to use sudo)</title>
		<link>http://www.ubuntututorials.net/add-a-sudoer-user-allowed-to-use-sudo/</link>
		<comments>http://www.ubuntututorials.net/add-a-sudoer-user-allowed-to-use-sudo/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 17:32:41 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=29</guid>
		<description><![CDATA[Sudo allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments. 
1. Create a new user (optional)
adduser user1

2. As root, run this command:
visudo

3. Add this line [...]]]></description>
			<content:encoded><![CDATA[<p>Sudo allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments. </p>
<p>1. Create a new user (optional)</p>
<p><code>adduser user1<br />
</code><span id="more-29"></span></p>
<p>2. As root, run this command:</p>
<p><code>visudo<br />
</code></p>
<p>3. Add this line into the file:</p>
<p><code>user1    ALL=(ALL) ALL<br />
</code></p>
<p><em>This will allow user1 to run all commands as root. You can also limit the access, <a href="http://www.sudo.ws/sudo/man/sudoers.html" target="_blank">Click here to view the syntax</a></em></p>
<p>4. Save the file by pressing Ctrl-X if you are using Nano or :w if using vi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/add-a-sudoer-user-allowed-to-use-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Ubuntu 9.04 to 9.10 (Jaunty to Karmic)</title>
		<link>http://www.ubuntututorials.net/upgrade-ubuntu-9-04-to-9-10-jaunty-to-karmic/</link>
		<comments>http://www.ubuntututorials.net/upgrade-ubuntu-9-04-to-9-10-jaunty-to-karmic/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 22:46:47 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=22</guid>
		<description><![CDATA[Ubuntu has just released the final version of Ubuntu 9.10 (Karmic Koala). If you're running the previous version Ubuntu 9.04 (Jaunty Jackalope), you can easily upgrade using the terminal.
If you have a desktop environment installed you can just click the upgrade button in the Update Manager accessible from System -> Administration -> Update Manager but [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu has just released the final version of Ubuntu 9.10 (Karmic Koala). If you're running the previous version Ubuntu 9.04 (Jaunty Jackalope), you can easily upgrade using the terminal.</p>
<p>If you have a desktop environment installed you can just click the upgrade button in the Update Manager accessible from System -> Administration -> Update Manager but on server systems without desktop environment you may need to upgrade using the terminal.</p>
<p>1. Install the update manager</p>
<p><code>sudo apt-get install update-manager-core<br />
</code><span id="more-22"></span></p>
<p>2. Launch the update and follow on-screen instructions</p>
<p><code>sudo do-release-upgrade<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/upgrade-ubuntu-9-04-to-9-10-jaunty-to-karmic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Increasing screen resolution in VNC on X</title>
		<link>http://www.ubuntututorials.net/increasing-screen-resolution-in-vnc-on-x/</link>
		<comments>http://www.ubuntututorials.net/increasing-screen-resolution-in-vnc-on-x/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 22:25:20 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=15</guid>
		<description><![CDATA[When connecting to a server without a monitor by VNC, X won't allow you to select screen resolution higher than 640x480 on next restart. This can be easily fixed:
Open /etx/X11/xorg.conf using a text editor (pico /etx/X11/xorg.conf) and add these two lines in the Monitor section of the config file:
HorizSync     31-95
VertRefresh  [...]]]></description>
			<content:encoded><![CDATA[<p>When connecting to a server without a monitor by VNC, X won't allow you to select screen resolution higher than 640x480 on next restart. This can be easily fixed:</p>
<p>Open /etx/X11/xorg.conf using a text editor (pico /etx/X11/xorg.conf) and add these two lines in the Monitor section of the config file:</p>
<p><code>HorizSync     31-95<br />
VertRefresh    50-60<br />
</code><span id="more-15"></span></p>
<p>Now reboot X or your server and next time you connect using VNC you'll be able to select up to 1024x768.</p>
<p>The Monitor Section will look something like this when you have added the two lines:</p>
<p><code>Section "Monitor"<br />
Identifier      "Configured Monitor"<br />
HorizSync     31-95<br />
VertRefresh    50-60<br />
EndSection<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/increasing-screen-resolution-in-vnc-on-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Tomcat 6 on Jaunty</title>
		<link>http://www.ubuntututorials.net/installing-tomcat-6-on-jaunty/</link>
		<comments>http://www.ubuntututorials.net/installing-tomcat-6-on-jaunty/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 22:20:06 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=12</guid>
		<description><![CDATA[Apache Tomcat is a servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run.
1. Install all required packages
sudo apt-get install tomcat6 tomcat6-admin tomcat6-examples

Tomcat depends on a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>Apache Tomcat is a servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run.</p>
<p>1. Install all required packages</p>
<p><code>sudo apt-get install tomcat6 tomcat6-admin tomcat6-examples<br />
</code><span id="more-12"></span></p>
<p><em>Tomcat depends on a lot of other packages and the package manager will take care of that</em></p>
<p>2. Make sure the service is responding by entering url similar to this one in a browser:</p>
<p><code>http://{ipaddress}:8080/<br />
</code></p>
<p><em>Replace {ipaddress} with the ip address of your server</em></p>
<p>3. Create user and roles for the manager app. Replace the contents of your current file with something like this: (sudo pico /etc/tomcat6/tomcat-users.xml)</p>
<p><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="manager" /&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="{username}" password="{password}" roles="tomcat,manager"/&gt;<br />
&lt;/tomcat-users&gt;<br />
</code></p>
<p><em>Replace {username} and {password} with credentials of your choice.</em></p>
<p>4. Restart Tomcat</p>
<p><code>sudo /etc/init.d/tomcat6 restart<br />
</code></p>
<p>5. Enter the manager app with a browser</p>
<p><code>http://{ipaddress}:8080/manager/html<br />
</code></p>
<p><em>You can browse the examples using this location: http://{ipaddress}:8080/examples</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-tomcat-6-on-jaunty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing vsftpd using text file for virtual users</title>
		<link>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/</link>
		<comments>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 17:56:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=8</guid>
		<description><![CDATA[vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make it check in a flat text file for virtual users allowed to login.
1. Install required packages
sudo apt-get install vsftpd libpam-pwdfile

2. Configure vsftpd (sudo pico /etc/vsftpd.conf)
Edit these variables in the config file and leave everything else with the [...]]]></description>
			<content:encoded><![CDATA[<p>vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make it check in a flat text file for virtual users allowed to login.</p>
<p>1. Install required packages</p>
<p><code>sudo apt-get install vsftpd libpam-pwdfile<br />
</code><span id="more-8"></span></p>
<p>2. Configure vsftpd (sudo pico /etc/vsftpd.conf)</p>
<p>Edit these variables in the config file and leave everything else with the default value.</p>
<p><code>anonymous_enable=NO<br />
local_enable=YES<br />
write_enable=YES<br />
local_umask=022<br />
chroot_local_user=YES<br />
virtual_use_local_privs=YES<br />
guest_enable=YES<br />
user_sub_token=$USER<br />
local_root=/var/www/$USER<br />
hide_ids=YES<br />
</code></p>
<p><em>Set the local_root to the parent directory where the user's home directories are located</em></p>
<p>3. Configure PAM to check the passwd file for users (sudo pico /etc/pam.d/vsftpd)</p>
<p><code>auth    required pam_pwdfile.so pwdfile /etc/ftpd.passwd<br />
account required pam_permit.so<br />
</code></p>
<p><em>Make sure you remove everything else from the file</em></p>
<p>4. Create the passwd file containing the users</p>
<p><code>sudo htpasswd -c /etc/ftpd.passwd user1<br />
</code></p>
<p>You can later add additional users to the file like this:</p>
<p><code>sudo htpasswd /etc/ftpd.passwd user2<br />
</code></p>
<p>5. Restart vsftpd</p>
<p><code>sudo /etc/init.d/vsftpd restart<br />
</code></p>
<p>6. Create user's home directory since vsftpd doesn't do it automatically</p>
<p><code>sudo mkdir /var/www/user1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
