Adding a web account for Proftpd
Hey,
I'm trying to add a user that will only have read-write access to /var/www for proftpd. That way, I can connect to the web folder via FTP. How do I go about doing this? Thanks |
Assuming your using Slackware, simple way is to create the user with adduser
During the adduser script, make /var/www it's home directory and make it's shell /bin/false; also adding it to the group that owns /var/www Edit /etc/shells and add /bin/false to the end of the file. chmod -R 775 /var/www <-to enabled rwx for owner and group so anyone in the group that owns the directory can write to it. And if you are using Slackware, I'd suggest replacing proftpd with vsftpd as its smaller, faster, and more secure with a better track record than proftpd. It's also easier to customize with virtual users, chroot options and so on. |
Great advice... thank you :)
|
All times are GMT -5. The time now is 01:26 AM. |