Hello samba, Given: Samba 2.0.10, FreeBSD-4.4 (or whatever). Needed: File server. Many users. Every user has his own directory. The owner can do whatever he wants except deleting his directory completly. Others can copy files to his directory, but can not read them and delete them. Playing with suid bits for directory, kernel option, masks, modes, inherit permissions I still could not find a way to setup it the way described above. Is it possible at all??? :) HOW DO I DO THIS? Thank you very much in advance for any hint..... With best wishes, Oles' Hnatkevych, http://gnut.kiev.ua, gnut@fc.kiev.ua
On Wednesday 10 October 2001 03:29, Oles' Hnatkevych wrote:> Hello samba, > > Given: Samba 2.0.10, FreeBSD-4.4 (or whatever). > Needed: > > File server. Many users. Every user has his > own directory. The owner can do whatever he > wants except deleting his directory completly. > Others can copy files to his directory, but > can not read them and delete them.If you turned on the sticky bit for the directory, then any file placed in it would inherit the user/group that the directory belonged to. Then you could make the default permissions something like rwxr--r-- for newly created files. and the directory permissions would be rwxrwxrwx That way, anyone would be able to read/write to that directory, but once a file was place there, it would belong to the owner of that directory and have very restrictive permissions, so only the owner of the directory would be able to edit/delete the file. -- Bill Moran Potential Technology technical services (412) 793-4257