LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to change default /var/ftp/pub in ftp(vsftpd) (https://www.linuxquestions.org/questions/linux-networking-3/how-to-change-default-var-ftp-pub-in-ftp-vsftpd-501450/)

mohd anas 11-14-2006 05:14 AM

How to change default /var/ftp/pub in ftp(vsftpd)
 
I'm configuring FTP server on my computer by using
vsftpd rpm package. How can I change the default shared
path i.e. /var/ftp/pub

Mohd Anas

anupamsr 11-14-2006 06:36 AM

There should be a vsftpd.conf somewhere (probably in /etc/). You can use locate command to find it. I think you can specify the shared directory there. You will have to read the man pages though.

I am currently out of touch to my computer so may be I am not of much help. Some one can reply you better...

Drax946 11-14-2006 01:14 PM

From the vsftpd.conf manpage:

Quote:

ftp_username
This is the name of the user we use for handling anonymous FTP.
The home directory of this user is the root of the anonymous FTP
area.

Default: ftp
So you may want to try /home/ftp, and the config file is /etc/vsftpd.conf

Rohit_4739 07-08-2011 02:14 PM

Quote:

Originally Posted by mohd anas (Post 2502807)
I'm configuring FTP server on my computer by using
vsftpd rpm package. How can I change the default shared
path i.e. /var/ftp/pub

Mohd Anas

Hi,

Yes you can defiantly change the default directory from /var/ftp/pub (for anonymous user)to any of your choice. Just add the directive anon_root = <path to directory> in the vsftpd.conf and you are good to go.

Thanks


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