LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding a web account for Proftpd (https://www.linuxquestions.org/questions/linux-software-2/adding-a-web-account-for-proftpd-348168/)

javamdk 07-29-2005 05:49 PM

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

trickykid 07-30-2005 11:06 AM

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.

javamdk 07-30-2005 11:27 AM

Great advice... thank you :)


All times are GMT -5. The time now is 01:26 AM.