OK, you can do it that way:
1. Create directories structure:
Code:
/var/www <= this is root directory of your domain
/var/www/dir1 <= directory for user1
/var/www/dir2 <= directory for user2
2. Now create user accounts:
Code:
useradd -d /var/www/dir1 -s /bin/false user1
passwd user1
useradd -d /var/www/dir2 -s /bin/false user2
passwd user2
3. Install vsftpd (Very Secure FTP daemon) - on Debian or Ubuntu you can do it:
Code:
apt-get install vsftpd
4. Edit /etc/vsftpd.conf and make the following changes:
Code:
check_shell=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002
chroot_local_user=YES
That is all. Now your users are restricted to their own home directories only.
Bookmarks