Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jacksinsomnia
n00b
n00b


Joined: 16 Oct 2003
Posts: 33

PostPosted: Fri Aug 06, 2004 10:47 pm    Post subject: samba question Reply with quote

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
View user's profile Send private message
donjuan
l33t
l33t


Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Fri Aug 06, 2004 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jacksinsomnia
n00b
n00b


Joined: 16 Oct 2003
Posts: 33

PostPosted: Fri Aug 06, 2004 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum