LinuxQuestions.org
Visit Jeremy's Blog.
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 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



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 + chroot problem bzolnowski Linux - Networking 11 01-19-2023 01:28 AM
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

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

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