LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache FTP permissions question (https://www.linuxquestions.org/questions/linux-newbie-8/apache-ftp-permissions-question-183806/)

Seventh 05-20-2004 02:26 PM

Apache FTP permissions question
 
I have a user loggin into my apache FTP, and I'm not sure how to set permissions for it.

Right now he FTP's to /home/username (this is good), but he can navigate up the tree to /home, /, /etc, and everything else.

I'd just like to restrict him so that he can't go any higher up than /home/hisusername, but obviously into any folders under that ( /home/hisusername/rtfm-seventh ).

Thanks much for any insight. :)

marghorp 05-20-2004 03:09 PM

What FTP are you using? in VSFTPD (that comes with redhat or fedora) you should edit /etc/vsftpd/vsftpd.conf file wher it says chroot_list_file and make it point to a file of your choice (place it into /etc folder)

In that file you should write the usernames of users you want access limited to their home directory (one user per line).

HEre is my vsftpd.conf file expunge:

chrot_list_file=/etc/vsftpd.chroot_list


If you are using any other ftp client, just locate it's conf file and set it up like this or so.


All times are GMT -5. The time now is 08:52 PM.