LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-22-2004, 03:28 PM   #1
noisybastard
Member
 
Registered: May 2003
Distribution: RedHat 9
Posts: 32

Rep: Reputation: 15
Exclamation chroot problems and vsftpd


Alright. I've been trying to figure out this mystery for a long LONG time now. For a while I had a server running vsftpd with chroot and it worked just fine, but I had to reinstall the OS and wipe everything out. Ever since the new install chroot has never worked.

Now, I don't know much about chroot outside of how it should be used in vsftpd to jail users, but I assume this command should at least work:
Code:
[root@kitsapbands etc]# chroot /etc/
chroot: /bin/bash: No such file or directory
[root@kitsapbands etc]# chroot ../etc/
chroot: /bin/bash: No such file or directory
My vsftpd.conf is as follows:

Code:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
xferlog_std_format=YES
chroot_list_enable=NO
chroot_local_user=YES
chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
#listen=YES
#tcp_wrappers=YES
The vsftpd.chroot_list has 3 accounts in it, and I've tried alternating the use of chroot_local_user and chroot_list_file to see if vsftpd would either jail the people in the list or the people not in the list, but no luck.

To start vsftpd I just run:
Code:
service vsftpd start
Is this the right way it should be done?


Something here just isn't working. Is chroot not working right, or is it vsftpd?
 
  


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 + chroot problem bzolnowski Linux - Networking 10 07-23-2011 02:59 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
vsftpd and chroot bstempi Linux - Security 10 11-08-2005 02:56 PM
vsftpd and chroot gbj Linux - Networking 3 03-08-2005 02:47 AM
vsftpd chroot problems illuminatedwax Linux - Software 0 12-17-2004 10:01 PM


All times are GMT -5. The time now is 01:10 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