| Adrian Snyman on Mon, 4 Sep 2000 10:25:18 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: GLUG: Samba and multiple users |
On Mon, 4 Sep 2000 andrew@xxxxxxxxxxx wrote: > On Sun, 3 Sep 2000, someone (possibly Graeme Walker) said: > > ... > > I have created a common share on a Linux Samba (2.0.6), this is for > > all users to access and have read/write access. I gave the directory > > chmod 777 and set the group to wv. All the users belong to the wv > > group. However when a user creates a new file or directory (folder), > > only they can write to it! > > > > I overcome this by manually doing a chmod 777 /home/common -R and > > chgrp wv /home/common -R Now I can do this with a cron job to run evey > > minute or two. But I believe there is a better solution. > > This is generally correct (yes, there is a better solution): > chgrp wv /home/common > chmod g+s /home/common > This causes the wv group to own all files which are created in > /home/common (by default) (I don't know about directories, though). > > In the declaration for the share, add: > create mode=0777 > (or 0770 if you don't want it world anythingable). > > &:-) > just check the umask that is set in the profile as well .. ----------------------------------------------------------------- | .--. Adrian Snyman - Datrix Solutions | | |o_o | mailto:adriansREMOVE@xxxxxxxxxxxx | | |:_/ | Tel: +27 11 888-1869 | | // \ \ Cell: +27 82 600-1211 | | (| | ) | |/'\_ _/`\ ** Please, don't read this sentence. | |\___)=(___/ I mean it, stop. If you read this, I'll disapp...** | -----------------------------------------------------------------