View previous topic :: View next topic |
Author |
Message |
Jacksinsomnia n00b
Joined: 16 Oct 2003 Posts: 33
|
Posted: Fri Aug 06, 2004 10:47 pm Post subject: samba question |
|
|
Is there a way to allow users to be able to put files on a samba server but not be able to delete any files? |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Fri Aug 06, 2004 11:38 pm Post subject: |
|
|
The way they do it at my school is rather interesting, but it's easy and it works. We have these things called "drop boxes", and they're rather self explanitory, anybody can write to them but only the owner can access the contents. The way you do that is you allow everybody write permissions, but deny all but the owner read permissions. The only catch is that then nobody else can browse the folder. So if you want others to browse the folder, it gets a bit more complicated, because write permissions immediately grant delete permssions.......
If you want this you might try adding these lines to your smb.conf for your share:
Code: | create mask = 744
force user = <owner>
force group = <ownder's group> |
This will force a file created by a Windoze client to have the specified owner and group, and the the create mask will make it have those permissions, so only the owner will have full access, but others can read and execute the contents. |
|
Back to top |
|
|
Jacksinsomnia n00b
Joined: 16 Oct 2003 Posts: 33
|
Posted: Fri Aug 06, 2004 11:44 pm Post subject: |
|
|
Yeah, I was thinking of doing something like that but it seemed a bit more complicated for my situation.
Since write permissions also mean delete permissions is there anyway to make it so when a user deletes a file while browsing a samba share through windows it moves the file to a temporary directory (like the recycling bin in windows)? |
|
Back to top |
|
|
|