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

Notices


Reply
  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
anupamsr
Member
 
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
Drax946
Member
 
Registered: Jun 2005
Location: WV USA
Distribution: Manjaro
Posts: 43

Rep: Reputation: 15
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

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

Rep: Reputation: 9
Quote:
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
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
 
  


Reply



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?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:18 AM.

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