LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-07-2005, 05:46 PM   #1
gbj
Member
 
Registered: Jul 2003
Posts: 142

Rep: Reputation: 15
vsftpd and chroot


I have recently installed and (almost) successfully configured vsftpd on my suse 9.2 computer. The trouble that I have is this...I want to jail(chroot) every ftp user to a specific directory that is not their home directory but a directory where I store files that I want other people to access. How do I go about doing this? Any help is appreciated. Sorry for my bad english.
 
Old 03-07-2005, 06:02 PM   #2
narmida
Member
 
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Rep: Reputation: 15
Put this in : /etc/vsftpd/vsftpd.conf

chroot_local_user=YES

and change in the /etc/passwd the home directory of the user to the directory you want them to be jailed in

also make them member of a group that is also allow to that directory

Last edited by narmida; 03-07-2005 at 06:05 PM.
 
Old 03-08-2005, 02:36 AM   #3
gbj
Member
 
Registered: Jul 2003
Posts: 142

Original Poster
Rep: Reputation: 15
Thank you so much, this did the trick
 
Old 03-08-2005, 02:47 AM   #4
gbj
Member
 
Registered: Jul 2003
Posts: 142

Original Poster
Rep: Reputation: 15
One more question tough, and sorry for being such a noob. How can I have multiple users share the same default home directory?
 
  


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.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
chroot problems and vsftpd noisybastard Linux - Networking 0 01-22-2004 03:28 PM
VsFtpd Chroot problem... CrewXp Linux - Newbie 1 01-04-2004 03:30 PM
Help with chroot jail - vsFTPd r042wal Linux - Software 1 06-05-2003 04:21 PM

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

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