PDA

View Full Version : vsftpd help (user privileges)



dishguy05
7th February 2007, 08:41 PM
Hello

this is my first post here.. i tried doing a lot of reading before to find my answers but i couldn't so i hope someone can help me. I am on Fedora Core 6

I've setup vsftpd and am able to log in fine. I have 3 users;

ftpadmin - this is the admin account that should be allowed to move/delete files and folders
allads - this account should be able to upload to any folder but not able to delete or overwrite files
clientads - this account is restricted to only access the ads folder. they should not be allowed to delete or overwrite folders either.

the structure of the directories is as follows

/home/ftp
/home/ftp/ads
/home/ftp/MajorClient1
/home/ftp/MajorClient2

so the 'allads' user is able to see all folders but not able to navigate to root directory.
and the 'clientads' user is only able to access the ads folder

so like i said.. everything access wise is working, but i want to restrict the privileges of the 2 users to not be able to delete, move or overwrite files or folders.

any help would be highly appreciated!

dmbyer
8th February 2007, 12:24 AM
Disable anonymous login and use a chroot jail to keep all non-ftpadmin users in their home directory. Then they can only modify the files they upload, and won't be able to access others' files without specifically allowing it.