It seems that I am out of luck for the last 24 hours. I have tried to set up virtual ftp users for my server and seen the number of posts on this topic it should have been a piece of cake. I wish… Some good posts worth having a look though (and reading CAREFULLY!):
Several lessons on this topic:
- Make sure you have pam_passwd.so. By default it is NOT present on Ubuntu (at least 8.04). Get it by issuing
sudo apt-get install libpam-pwdfile
- Don’t try to be smarter than you are. The following command (without -m switch!) do the trick with the passwd file:
sudo htpasswd -c /etc/vsftpd/passwd user_name
Damn, was it worth sleepless 4 hours of headaches?