Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP permissions

Status
Not open for further replies.

iLinkTech

IS-IT--Management
Nov 28, 2003
133
DE
Hi,

I'm sure this has been covered in the past, so sorry about the repeat post. I'm trying to set permissions for 5 FTP users on RHEL 4. The dir structure looks like this:

/home/FTP
/home/FTP/folder1
/home/FTP/folder2
/home/FTP/folder3
/home/FTP/folder4

Users need the following access rights:
user1 - RXW all folders
user2 - RW on folder1, no access to other folders
user3 - RW on folder2, no access to other folders
user4 - RW on folder3, no access to other folders
user5 - RW on folder4, no access to other folders

I'm new to Linux, need some assistance with this (tearing my hair out at the moment) - examples would be really helpful.

Also, is there any way to prevent the users (other than user 1) from deleting an item from their folder once it's been written?

Using VSFTPd as a server, generic FTP clients on the workstations.

Thanks...
 
OK,

Update - I figured out the "chroot_local_user" option so part oft he problem is resolved. The only thing I need to do now is to prevent users (except user1) from deleting items in their folders - is this possible?

Thanks...
 
Yes, you can set the "sticky" permission, if memory serves me well.

man chmod should help you out.

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top