LinuxQuestions.org
Help answer threads with 0 replies.
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 05-02-2003, 06:20 PM   #1
saeed_zarea
Newbie
 
Registered: May 2003
Posts: 14

Rep: Reputation: 0
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,
 
Old 05-02-2003, 06:26 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What ftp server are you using?
 
Old 05-02-2003, 06:30 PM   #3
saeed_zarea
Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
thank you for the rplay. I'm using vsftpd.
 
Old 05-02-2003, 06:34 PM   #4
saeed_zarea
Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 05-02-2003, 06:37 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 05-02-2003, 06:45 PM   #6
saeed_zarea
Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you. That did it.
 
Old 10-09-2003, 03:51 PM   #7
yogafrog
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
same for me

Thanks alot for this nice hint.
 
Old 01-30-2004, 08:58 PM   #8
ricbax
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: Fedora
Posts: 22

Rep: Reputation: 15
This info helped me too. No more of this about chroot jails
 
Old 07-12-2011, 08:07 AM   #9
mpasha06
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Rep: Reputation: 1
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.
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
How restrict to home directory in telnet session cuencano Linux - Security 3 06-14-2005 06:01 PM
ftp cannot cd to my home directory powah Linux - Software 0 06-03-2005 12:10 PM
Moving /home Directory? NovaBurst DamnSmallLinux 1 04-18-2005 11:59 PM
Moving my /home directory to another hd bumpert Linux - Newbie 6 07-26-2004 04:27 AM

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

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