- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: control the ftp directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 01:51 PM
09-13-2006 01:51 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 06:36 PM
09-13-2006 06:36 PM
Re: control the ftp directory
there are lot manuals, see for example http://www.cyberciti.biz/tips/vsftp-chroot-users-limit-to-only-their-home-directory.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 06:44 PM
09-13-2006 06:44 PM
Re: control the ftp directory
But I found that if I add "chroot_local_user=YES" , ALL user only can access OWN directory , if I want a SPECIFY user can access some SPECIFY directory , what can I do ? thx
"Now all users of VSFTPD/FTP will be limited to accessing only files in their own home directory. They will not able to see /, /etc, /root and /tmp and all other directories. This is an essential security feature. "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 07:03 PM
09-13-2006 07:03 PM
Re: control the ftp directory
useradd -d /path/dirname
to the system so upon his login he'll get the directory (and its subdirectories) you want. If you enabled chroot_local_user option then the user will be limited to this directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 01:31 AM
09-14-2006 01:31 AM
Re: control the ftp directory
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
Only users listed in the file will be in chroot jail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 11:23 PM
09-25-2006 11:23 PM
Re: control the ftp directory
if I want to limite the user in the specify directory not OWN directory , what can I do ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 11:31 PM
09-25-2006 11:31 PM
Re: control the ftp directory
you can always change ownership with:
chown username.groupname foldername
Make sure that the user or everyone has r-x permission for this directory, otherwise he won't be ableo to cd there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:28 PM
09-26-2006 05:28 PM
Re: control the ftp directory
"you can always change ownership with:
chown username.groupname foldername
Make sure that the user or everyone has r-x permission for this directory, otherwise he won't be ableo to cd there" .
of course the user can access the foldername , but if I want the user can ONLY access the foldername but not other directoies , what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:53 PM
09-26-2006 05:53 PM
Re: control the ftp directory
You can add a user with:
useradd -d /path/dirname
to the system so upon his login he'll get the directory (and its subdirectories) you want. If you add "chroot_local_user=YES" option to /etc/vsftpd/vsftpd.conf and restart the vsftpd service,then the user will be limited to his own directory. His own directory doesn't have to reside in /home, thus it can be the directory (the only directory with its subdirectories) that you want him to access.
P.S.
You didn't assign points, which will probably result in less replies to your questions in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:08 PM
09-26-2006 06:08 PM
Re: control the ftp directory
if I not only want to release the user home directory , I want to release one more directory eg. /tmp so that the user can access his own directory and /tmp either , what can I do ?thx