LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Vsftpd chroot directory? (http://www.linuxquestions.org/questions/linux-networking-3/vsftpd-chroot-directory-850817/)

snq 12-17-2010 03:26 AM

Vsftpd chroot directory?
 
I was just checking vsftp and for anonymous login it lands me in a chrooted /pub directory

where is the actual location of this /pub in the file system ?

I am unable to find the related setting from the conf file

bathory 12-17-2010 03:45 AM

Hi,

This depends on the Linux distribution you're using, but usually the anonymous chroot directory is /var/ftp.
If you don't have a "anon_root" option in vsftpd.conf, then this directory is defined by the homedir of the ftp user

Regards

snq 12-17-2010 04:27 AM

Quote:

Originally Posted by bathory (Post 4194488)
Hi,

This depends on the Linux distribution you're using, but usually the anonymous chroot directory is /var/ftp.
If you don't have a "anon_root" option in vsftpd.conf, then this directory is defined by the homedir of the ftp user

Regards


yes thank, the directory is /var/ftp/pub, I am using centos5

however, If I want to change it for the anonymous users than how can I do that ?

bathory 12-17-2010 04:39 AM

You can use:
Code:

anon_root=/path/to/somedir
Make sure that you have the correct permissions for the ftp user and if you're using SELinux, that it's not going to deny access to that directory


All times are GMT -5. The time now is 07:56 PM.