Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-02-2003, 06:20 PM
|
#1
|
Newbie
Registered: May 2003
Posts: 14
Rep:
|
moving out home directory during ftp session
Is there anyway I can disable a user from moving out of his/her home directory during ftp session (home directory would be look like root directory to him).
Thank you,
|
|
|
05-02-2003, 06:26 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
What ftp server are you using?
|
|
|
05-02-2003, 06:30 PM
|
#3
|
Newbie
Registered: May 2003
Posts: 14
Original Poster
Rep:
|
thank you for the rplay. I'm using vsftpd.
|
|
|
05-02-2003, 06:34 PM
|
#4
|
Newbie
Registered: May 2003
Posts: 14
Original Poster
Rep:
|
What I like to do is that when a user ftp to our site they should have access only to their home folder. They shuold not not be able to do cd out of their home directory.
|
|
|
05-02-2003, 06:37 PM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Take a look at this section (or create it) in /etc/vsftpd.conf
Code:
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd.chroot_list
Then create "/etc/vsftpd.chroot_list" and add the users you wish to chroot. You can reverse the default behaviour - ie all users but the ones in the file should be chrooted by adding "chroot_local_user=yes" to your /etc/vsftpd.conf file.
|
|
|
05-02-2003, 06:45 PM
|
#6
|
Newbie
Registered: May 2003
Posts: 14
Original Poster
Rep:
|
Thank you. That did it.
|
|
|
10-09-2003, 03:51 PM
|
#7
|
LQ Newbie
Registered: Sep 2003
Posts: 2
Rep:
|
same for me
Thanks alot for this nice hint.
|
|
|
01-30-2004, 08:58 PM
|
#8
|
LQ Newbie
Registered: Dec 2003
Location: Canada
Distribution: Fedora
Posts: 22
Rep:
|
This info helped me too. No more of this about chroot jails
|
|
|
07-12-2011, 08:07 AM
|
#9
|
LQ Newbie
Registered: Oct 2010
Posts: 9
Rep:
|
vsftpd user restriction.
Hi, thanks for suggestion, but it works in command prompt, if we access vsftpd through the
WinScp tool, it wont restrict the user. How to restrict the user in thare home dir in GUI tools, like WinScp.
|
|
|
All times are GMT -5. The time now is 12:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|