Azitech

Azimout's Linux weblog

proftpd

leave a comment »

Here’s how to install and configure an ftp server (proftpd) on a Ubuntu machine.

sudo aptitude install openbsd-inetd proftpd-basic (tell it to start from inetd, not standalone)
sudo vi /etc/proftpd/proftpd.conf (change ServerName)

System users (i.e. the ones that have an entry in /etc/passwd) can login to proftpd by default, with their system password; they will land in their home directory. To add “virtual users” (i.e. ftp-only users), do:
ftpasswd --passwd --shell=/bin/false --uid=502 --name=username --home=homedir --file=/etc/proftpd/ftpd.passwd (choose username, homedir)
Then add the following line to /etc/proftpd/proftpd.conf:
AuthUserFile /etc/proftpd/ftpd.passwd

To allow your user(s) to upload files, just modify the homedir’s permissions.

Advertisements

Written by azimout

14/07/2010 at 21:50

Posted in Reference

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: