Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-14-2006, 05:14 AM   #1
mohd anas
LQ Newbie
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
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
Old 11-14-2006, 06:36 AM   #2
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
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...
Old 11-14-2006, 01:14 PM   #3
Registered: Jun 2005
Location: WV USA
Distribution: Debian/Ubuntu
Posts: 43

Rep: Reputation: 15
From the vsftpd.conf manpage:

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

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

Last edited by Drax946; 11-14-2006 at 01:15 PM.
Old 07-08-2011, 02:14 PM   #4
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Rep: Reputation: 9
Originally Posted by mohd anas View Post
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

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
About Slackware 9.1 boot disk?? AL3OMDAH Slackware 4 04-18-2007 09:54 AM
How to share /var/ftp/pub/... to Windows clients rrobinet Linux - Networking 0 05-06-2004 12:23 AM
Change Default FTP login Bertha Linux - General 2 03-09-2004 02:46 PM
permissions/ownership on /var/ftp for vsftpd pioniere Red Hat 3 02-19-2004 03:38 PM
How to chnage default FTP directory for vsftpd ? patiwat Linux - Newbie 1 08-01-2003 08:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration