PROFTPD virtual user – quick howto

It was boring to look for it in PROFTPD docs – but I could not found quick FAQ so I had no choice. Anyway I decided to write it for others who need quick tip. Here is just 4 simple steps.

1. Download “ftpasswd” perl script and chmod it to 755:

wget http://www.castaglia.org/proftpd/contrib/ftpasswd
chmod 755 ftpasswd

2. Create file with your virtual user and ftp group

mkdir /etc/proftpd
ftpasswd --passwd --name=ftp_login --home=/home/ftp/ftp_login --shell=/bin/false --uid=1003
ftpasswd --group --name=ftp_group --gid=50 --member=ftp_login

(it is not important what UID and GID you will use as long as it does not have root privileges :), just use any system uid and group and proftpd will write files with it’s privileges)

3. Add this to your proftpd.conf file:

RequireValidShell  off
AuthUserFile  /etc/proftpd/ftpd.passwd
AuthGroupFile /etc/proftpd/ftpd.group

4. Restart PROFTPD

killall -HUP proftpd

That’s all! Any questions? Post it below ;)

Would you be so kind to share?
  • Digg
  • Twitter
  • del.icio.us
  • RSS
  • Facebook
  • Reddit
  • StumbleUpon

4 Responses to “PROFTPD virtual user – quick howto”


Leave a Reply