nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Jailing vsftpd user to home directory

This is a discussion on Jailing vsftpd user to home directory within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I have added a new user to a RHEL4 Server, and I the chroot user is uncommented and the user ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-22-2007, 01:32 AM
Junior Member
User
 
Join Date: Dec 2007
Location: Clinton, Arkansas
My distro: Fedora8/RHEL5.1
Posts: 2
Rep Power: 0
grifs71 is on a distinguished road
Default Jailing vsftpd user to home directory

I have added a new user to a RHEL4 Server, and I the chroot user is uncommented and the user is listed in the plain user group.

However, when the id is tried out for the customer (using winscp) using the login you can view the root contents.

I want to lock the user id to only the home directory to go down but not up?

Is this possible, so far I have not had any success with configuration.

Any help would be greatly appreciated.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-22-2007, 05:23 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 564
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Yes it is possible, open /etc/vsftpd/vsftpd.conf and set the following to yes:
Code:
chroot_local_user=YES
Restart vsftpd
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 12-26-2007, 12:56 AM
Junior Member
User
 
Join Date: Dec 2007
Location: Clinton, Arkansas
My distro: Fedora8/RHEL5.1
Posts: 2
Rep Power: 0
grifs71 is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
Yes it is possible, open /etc/vsftpd/vsftpd.conf and set the following to yes:
Code:
chroot_local_user=YES
Restart vsftpd

I have this set so will restarting the services make this effective?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
take backup of all indiviudal user dirs seperately of /home veerkumar Shell scripting 4 01-15-2008 07:37 AM
sendmail and mysql/user without home directory asim.mcp Getting started tutorials 0 07-07-2007 03:41 AM
Secure vsftpd FTP permissions on anonymous user uploads nixcraft Getting started tutorials 6 12-20-2006 02:00 AM
using active directory user database from Solaris ganesh Solaris/OpenSolaris 3 11-17-2005 12:04 AM
FreeBSD putty home key problem chiku All about FreeBSD/OpenBSD/NetBSD 2 02-03-2005 05:10 PM


All times are GMT +5.5. The time now is 05:17 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36