LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vsftpd home directory (https://www.linuxquestions.org/questions/linux-networking-3/vsftpd-home-directory-49985/)

Harpune 03-15-2003 01:45 PM

vsftpd home directory
 
Is it possible to change the root directory for anonymous logins?

for instance, my current root directory for anonymous logins is /var/ftp. how can i change it to /var/ftp/pub ?

Thanks for the help

TheOther1 03-15-2003 08:40 PM

Hi Harpune,
In your vsftpd.conf file, look for the directive anon_root

from the man 5 vsftpd.conf :study: we get:

anon_root
This option represents a directory which vsftpd
will try to change into after an anonymous login.
Failure is silently ignored.

Default: (none)

I would guess just add a line like this
anon_root=/var/ftp/pub
and you should be good. It should probably go before the other anon lines (anon_world_readable_only, anonymous_enable, etc) but I'm not sure if it makes a difference.

HTH!

Harpune 03-16-2003 10:58 AM

thanks forthe help.


All times are GMT -5. The time now is 10:04 AM.