LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2003, 01:24 AM   #1
Drogo
Member
 
Registered: Oct 2002
Distribution: RedHat 8 or 9 (shrike)- Fedora Core 1,2
Posts: 215

Rep: Reputation: 30
vsftpd question


im using vsftpd on redhat 8 and my question is:

how to keep the users lock on the home/user directory without being able to go up on levels and see the other directories on the server .



Last edited by Drogo; 01-29-2003 at 06:50 PM.
 
Old 01-27-2003, 04:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
The search term you're looking for is "chroot". Scan the vsftpd docs for "chroot", then search LQ for "vsftp" and "chroot" (we've got threads about it), fiddle around making the config work, then post your errors here.
 
Old 01-27-2003, 02:19 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well that's the default behaviour of vsftpd if I remember correctly. But unSpawn is right of course search the docs for it ... you can chroot the users to different pathes like if you have in /etc/passwd


/var/www/./example.com/


the user can get into the /var/www directory also ... his real homedirectory is /var/www/example.com though ... if you need a vsftpd.conf check this post
 
Old 01-28-2003, 06:59 PM   #4
Drogo
Member
 
Registered: Oct 2002
Distribution: RedHat 8 or 9 (shrike)- Fedora Core 1,2
Posts: 215

Original Poster
Rep: Reputation: 30
i search but nothing i found , will like to jail users on /home/user please hlp


i have redhat 8.0 and vsftpd 1.1.0.1

Last edited by Drogo; 01-28-2003 at 07:00 PM.
 
Old 01-29-2003, 03:46 AM   #5
paulten
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Distribution: Debian unstable, Redhat 8.0 7.2
Posts: 26

Rep: Reputation: 15
Smile

Hello

A 'man vsftpd.conf' and a search for "chroot" gave me this :

chroot_local_user
If set to YES, local users will be placed in a chroot() jail in their home directory after login. Warning: This option has security implications, especially if the users have upload per-mission, or shell access. Only enable if you know what you are doing. Note that these security implications are not vsftpd specific. They apply to all FTP daemons which offer to put local users in chroot() jails.
Default: NO

check man vsftpd.conf for more information.
 
Old 01-29-2003, 04:02 AM   #6
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
set the following to your vsftpd.conf file:


chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

Now, create the file /etc/vsftpd.chroot_list and add the usernames you want to jail to their home directory.
 
Old 01-29-2003, 06:45 PM   #7
Drogo
Member
 
Registered: Oct 2002
Distribution: RedHat 8 or 9 (shrike)- Fedora Core 1,2
Posts: 215

Original Poster
Rep: Reputation: 30
Thumbs up

thanks a lot guys it work ......
 
  


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
Question about vsFTPd LinuxStart Linux - Software 39 07-14-2005 08:15 PM
vsftpd question lisoftware Linux - Software 1 06-28-2005 03:28 AM
vsFTPd question(s) username17 Linux - Software 5 05-20-2005 12:31 AM
vsFTPd question marghorp Linux - Software 5 10-21-2004 01:40 PM
VSFTPD Question TheRealDeal Linux - General 4 12-02-2003 04:41 PM


All times are GMT -5. The time now is 08:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration