[ILUG] Re: Access rights for a samba share - solution?
weeboy at conorwynne.com
Tue Apr 26 11:10:00 IST 2005
To answer my own question:
add the following entries:
valid users = @users
create mode = 0660
directory mode = 0770
Then I tested it as follows:
mount -t smbfs -o username=user1,uid=500,gid=100 //localhost/share /mnt
su - user1
su - user2
Save & exit
Works, grand. Checked again that both users could edit the same file ->
On a side note, its a bit crap that when one posts, it takes hours and
hours to arrive (if it arrives at all), so I ended up finding the solution
Since ILUG has always been incredibly usefull due to the speed of answers
to particular problems, I see this as a big setback.
I assume its an anti-spammer thing.
(not everyone has access to IRC)
> Hi all,
> I've setup a samba server which will hold a small access DB.
> I've setup the directory rights as follows:
> chown -R nobody:users directory/
> chmod 2770 directory
> Both users can touch a file and they get:
> su - user1
> touch test
> Test correctly has user "user1" & "users"
> Thats grand.
> su - user2
> touch test2
> Shows me "user2" & "users"
> So grand aswell.
> However, access only allows DB modification from one user or the other ->
> depending on who owns what.
> So my question is, what rights should I give to the db files?
> Should I also set rights in samba?
> Should I do:
> chown nobody:users directory/* -R
> I would normally just test this, but I cannot without interrupting
More information about the ILUG