LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-17-2010, 03:26 AM   #1
snq
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
Vsftpd chroot directory?


I was just checking vsftp and for anonymous login it lands me in a chrooted /pub directory

where is the actual location of this /pub in the file system ?

I am unable to find the related setting from the conf file
 
Old 12-17-2010, 03:45 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,955

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

This depends on the Linux distribution you're using, but usually the anonymous chroot directory is /var/ftp.
If you don't have a "anon_root" option in vsftpd.conf, then this directory is defined by the homedir of the ftp user

Regards
 
1 members found this post helpful.
Old 12-17-2010, 04:27 AM   #3
snq
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

This depends on the Linux distribution you're using, but usually the anonymous chroot directory is /var/ftp.
If you don't have a "anon_root" option in vsftpd.conf, then this directory is defined by the homedir of the ftp user

Regards

yes thank, the directory is /var/ftp/pub, I am using centos5

however, If I want to change it for the anonymous users than how can I do that ?
 
Old 12-17-2010, 04:39 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,955

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
You can use:
Code:
anon_root=/path/to/somedir
Make sure that you have the correct permissions for the ftp user and if you're using SELinux, that it's not going to deny access to that directory
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd anonymous user cannot see directory other than chroot? cpthk Linux - Server 2 10-05-2009 03:23 AM
vsftpd chroot, want to allow a directory from elsewhere 60s TV Batman Linux - Security 5 06-16-2007 09:59 AM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 08:24 PM
vsftpd and chroot gbj Linux - Networking 3 03-08-2005 03:47 AM
vsftpd home directory and chroot avante Linux - Networking 4 03-17-2003 02:56 AM


All times are GMT -5. The time now is 10:12 PM.

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