LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2012, 11:23 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Restricting users to their home folder using vsftpd


I use vsftpd , what to restrict user to home folder , I now set the below setting may do it .
chroot_local_user=YES

I wonder if I add this setting , it may apply to all users , all users may restrict user to home folder , if I just want to restrict 1 user only, what can I do ?



http://thextramoney.wordpress.com/20...ftpd-on-linux/
 
Old 07-12-2012, 12:09 AM   #2
nguyencanhtoan
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Rep: Reputation: Disabled
Smile

you can use options on /etc/vsftpd/vsftpd.conf file

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

you have to touch file chroot_list and list user chroot in this file

Example : I want to chroot user ftp_u1
I use two top options after add user ftp_u1 to file chroot_list
vim /etc/vsftpd/chroot_list
ftp_u1
 
  


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
Restricting users to their home folder supervillan Linux - Newbie 2 04-08-2009 11:47 AM
Restricting FTP Users to their home dir in vsftpd ~ForgottenFlux~ Linux - Software 2 09-03-2003 07:54 PM
Vsftpd revisited - Restricting users further (Less confusing this time) Korff Linux - Networking 2 06-03-2003 09:13 PM
vsftpd: restricting users to home dirs groovin Linux - Security 6 11-25-2002 04:20 PM
restricting users to one folder flip-x Linux - Security 0 02-18-2001 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 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
Open Source Consulting | Domain Registration