Ubuntu 8.04 FTP User Jail |
Server Training - FTP Server |
One concern when users FTP into your server, is that by default users who have accounts can roam your server to view contents of files. VSFTPD by default does not allow user logins, it allows anonymous by default. Anonymous users by default are locked into the directory that they login to. This is exactly what you would want. However, if you set up user ftp accounts you will probably want to limit those users so they can only access their own files and not other users. In order to achieve this you must place them in a chroot jail.
Jail All Users In order to jail all users, keep them in their home directories, use these settings in the /etc/vsftpd.conf. chroot_local_user=YES Add these settings to allow anonymous logins using regular FTP and allow users to login using SSL. anonymous_enable=YES This creates a very useful and secure set up. Allow Some Users to Roam the Server You also have the option to allow special users to login and be able to move around the server. This means that these will not be jailed. chroot_local_user=YES Add these settings to allow anonymous logins using regular FTP and allow users to login using SSL. anonymous_enable=YES
Copyright CyberMontana Inc. and BeginLinux.com
All rights reserved. Cannot be reproduced without written permission. Box 1262 Trout Creek, MT 59874
|