tuxman
06-23-2004, 12:03 PM
I would like to be able to set the permissions for a samba user to read, write but not modify files – even files they have created. Is this possible?
thanks
thanks
|
Click to See Complete Forum and Search --> : read, write but not modify permissions in samba tuxman 06-23-2004, 12:03 PM I would like to be able to set the permissions for a samba user to read, write but not modify files – even files they have created. Is this possible? thanks XiaoKJ 06-23-2004, 12:25 PM write and modify -- isn't it the same? if you want something like a forum that restricts deletion of posts you may be able to do it... cowanrl 06-24-2004, 08:16 AM Windows differentiates between modify and write permissions. With the write permission, you can modify the contents of of a file but you can't rename or delete it. You need the modify permission to accomplish those 2 tasks. Linux doesn't have a modify permission. If you have the write permission to a file, you have the ability to change the file's contents, rename and delete the file. The only way you might accomplish this is to set the sticky bit on the directory you are sharing out. Then use the Samba force user and force group commands in the smb.conf file so that the same user and group always have ownership to files created in that directory. You may also need to use the force directory mask(I think that's what it's called) so that all files created in the directory have r/w permission for everyone. I haven't had the chance to test this but it may allow a user to create a file, write changes to it but not rename or delete it. If you want to control who has permissions to write to files in the directory, you'll probably want to use the write list option in smb.conf for the share. This is only a suggestion and I don't have time to test this and see if it works right now. I suggest you read through the man page on smb.conf to see how to use the commands I mentioned above. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |