LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 03-15-2003, 01:45 PM   #1
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Rep: Reputation: 15
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
 
Old 03-15-2003, 08:40 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Hi Harpune,
In your vsftpd.conf file, look for the directive anon_root

from the man 5 vsftpd.conf 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!
 
Old 03-16-2003, 10:58 AM   #3
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
thanks forthe help.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd - limit user to his/her home directory kaon Linux - Software 0 01-15-2005 12:32 AM
vsftpd access to non-home directory rwhart Linux - Newbie 1 02-10-2004 01:42 AM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 02:04 PM
vsFTPd: howto keep a user in his home directory jonnyz Linux - Networking 1 06-20-2003 02:06 PM
vsftpd home directory and chroot avante Linux - Networking 4 03-17-2003 01:56 AM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration