multiple users to access same share in samba?

Red Squirrel

No Lifer
May 24, 2003
69,727
13,347
126
www.betteroff.ca
Is it possible to make a share that multiple users can write to? It seems if one person writes a file, the other user can't delete it. This is really irritating since if I copy something from downstairs to a share then come upstairs I need to ssh in to delete it after since I can't delete it from the share since the user logged in downstairs has to do it.
 

Red Squirrel

No Lifer
May 24, 2003
69,727
13,347
126
www.betteroff.ca
Yeah I tried that. I even tried using forcegroup and forceuser to no avail. Is there a way to get a listing of each user and group? Maybe by chance they arn't in same group, but my webmin broke and I never got around to fixing it so theres no way to manage users that I know of. I can add a new user and specify a group but thats about it.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
forceuser and forcegroup are the easiest way to accomplish what you want. If they're not working, then you're not using them properly. Here's the smb.conf snippet for my "everyone" share at home...

[shared]
path = /home/shared
public = yes
only guest = yes
writable = yes
printable = no
browseable = yes
hosts deny = ALL
hosts allow = 192.168.0.
force user = home
force group = home
create mask = 0644
 

Red Squirrel

No Lifer
May 24, 2003
69,727
13,347
126
www.betteroff.ca
Oops my bad, turns out I was using755 not 775. Now my problem is only with folders. If one user creates a folder, it ingores the force group parameter and just creates it as that group. This is my config:


[auclair]
path = /data/samba/shared/auclair/
comment = Auclair
browseable = yes
writable = yes
valid users=administrator, auclair
forcegroup smbusers
create mode 770
create mask 770
directory mode 770



[shared]
path = /data/samba/shared/
comment = main share
browseable = yes
writable = yes
guest ok = no
valid users=administrator,ryan, p2puser
force group smbusers
write mode = 775
directory mode = 775


If auclair user writes to auclair share, I log is as ryan into shared and cant delete any files inside folders made by auclair. But just a file added to an existing folder will delete fine.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Originally posted by: RedSquirrel
[auclair]
path = /data/samba/shared/auclair/

[shared]
path = /data/samba/shared/
Well, for starters, it's only going to complicate things by having one share inside another share. Separate them and see if that helps. If it doesn't, verify that the unix permissions you're seeing on the files/folders from the server's perspective are what you're expecting to see.