LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I give access to an ftp user to the var/www/html dir (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-give-access-to-an-ftp-user-to-the-var-www-html-dir-492013/)

shootinstr8 10-13-2006 02:54 AM

How do I give access to an ftp user to the var/www/html dir
 
I'm running FC5,
I would like to be able to give a ftp user (site developer) access to the "var/www/html" dir on our www box.
I'm already running vsftpd and normal users can access the server in their home dirs fine. When I create the user and make his home dir "var/www/html" vsftp kicks me out. Any ideas on how to get this working?

Thanks Kent

MasterC 10-13-2006 03:32 AM

Mornin!

Reading over the man page:
http://vsftpd.beasts.org/vsftpd_conf.html

I see:
Quote:

chroot_local_user
If set to YES, local users will be (by default) placed in a chroot() jail in their home directory after login.
Which I assume you have enabled to provide that feature (which you mention). Right above that is:
Quote:

chroot_list_enable
If activated, you may provide a list of local users who are placed in a chroot() jail in their home directory upon login. The meaning is slightly different if chroot_local_user is set to YES. In this case, the list becomes a list of users which are NOT to be placed in a chroot() jail. By default, the file containing this list is /etc/vsftpd.chroot_list, but you may override this with the chroot_list_file setting.
And then you could set your local_root (I believe) to /var/www/html

Cool


All times are GMT -5. The time now is 05:39 PM.