[Samba] Read Write Permission

Dennis McLeod dmcleod at foranyauto.com
Tue Nov 27 23:38:56 GMT 2007

Instead of giving users access to the share, make a group and give the group
access to the share. Add the needed users to the group. Later, when you add
a new user, you just add him to the group(s) he needs....

(valid users = @accounting) 
Then add your users to the group.

Finally, force the group to accounting.
(force group = accounting)

Here's mine:

writeable = yes
path = /data/accounts 
force directory mode = 775
force group = acctsdep
force create mode = 775
comment = Accounting Files 
valid users = @acctsdep
veto files = /*.mp3/*.mpg/
create mode = 775
directory mode = 775
hide unreadable = yes

-----Original Message-----
From: samba-bounces+dmcleod=foranyauto.com at lists.samba.org
[mailto:samba-bounces+dmcleod=foranyauto.com at lists.samba.org] On Behalf Of
Dino Chopins
Sent: Tuesday, November 27, 2007 11:13 AM
To: samba at lists.samba.org
Subject: [Samba] Read Write Permission

Hi Everyone,

I've setup file server for my client with these schemes :
1. Samba server is on CentOS box
2. Every user has their Unix accounts
3. Every Unix accounts have their mapped Samba users/accounts with same name
4. They can get access to some shares, eg :
        path = /public/accounting
        valid users = alexander, bernard, charlie, david, eugene
        admin users = alexander
        read list = eugene,
        write list = alexander, bernard, charlie, david
        read only = No
5. I use Ubuntu clients to access to this share with a valid user listed

My problem is, when one of this user let's say alexander created a file with
OpenOffice and save this file the user:group created is alexander:alexander
and permission is -rwxr--r-- (744). Thus, other user such as bernard cannot
open the file created by alexander. How can I change / set a default
permission to -rwxrw-rw- (766) ?


To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list