LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Richard Sharpe <sharpe@ns.aus.com>
To : Glen Turner , omegasys@adam.com.au
Date: Thu, 27 Apr 2000 01:08:58 +0900
Re: Samba Permissions
Hi,
At 10:44 PM 4/26/00 +0930, Glen Turner wrote:
>Jeremy Ervine wrote:
>>
>> Hi all,
>>
>> I am having a small problem with Samba File Permissions. I have created
a small
>> network with about 10 users, and these ten users all have their own home
directory,
>> plus they need full access a shared, samba share. My problem is, each
user who
>> writes a file to that share is only writable to that user, but read only to
>> everyone else.
>>
>> I have tried all the samba docos, I have set in Linuxconf 777 to be the
default
>> permission for all files written, but still no luck.
>
>I find it best to force the permissions of the created files
>on shares that are owned by the group. For example, if
>all users in the UNIX group 'office' exchange files through
>the 'office' share, then I put the following into smb.conf
>
>[office]
> comment = office.smb.example.edu.au
> path = /home/samba/office
> browseable = Yes
> writeable = Yes
> read list = @office
> write list = @office
> force group = +office
> create mask = 0660
> directory mask = 0770
> force create mode = 0660
> force directory mode = 0770
>
Glen is right. The parameters he is pointing you at are:
force group = some group
This group should be a group that all users who need write access to the
share are in.
force create mode = 0660
force directory mode = 0770
This makes sure that all files and directories created will have the
correct permissions.
You can also use force user = <some user> if you want just to keep things
tidy.
Under Samba 2.0.7 you may be able to use
inherit permissions = yes
on the share as well.
Regards
-------
Richard Sharpe, sharpe@ns.aus.com, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page