I have configured a Samba 3.6.23 server in CentOS 6: 2.6.32-504.el6.x86_64. I'm having an odd behavior when creating files. The configuration is like this in smb.conf:
[Documents]
path = /home/Docs/
writable = yes
browseable = yes
valid users = xxx, yyy, zzz
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
When xxx create a document, the permissions are set like this:
[root@Server examples]# ls -lah
total 32K
drwxrwxrwx+ 2 xxx xxx 4.0K May 19 16:34 .
drwxrwxrwx+ 6 xxx xxx 4.0K May 19 16:20 ..
-rwxrwx-wx+ 1 xxx xxx 0 May 19 16:31 5.txt
-rwxrwx-wx+ 1 xxx xxx 0 May 19 16:30 apir4.txt
examples is inside Documents and has been created by the same user, having drwxrwxrwx permissions, but the files are created without the read set for other users. What can I be missing or what can I do to fix it? Thanks!
Samba with no read permissions
Re: Samba with no read permissions
[global]
obey pam restrictions = no
[Documents]
create mask = 0666
This is my part of share in smb.conf:
[SHARE]
path = /mnt/glusterfsreplica1/share
guest ok = yes
read only = no
writable = yes
invalid users = root,admin,@wheel
create mask = 0660
directory mask = 0770
force user = smbusr
force group = smbusr
veto oplock files = /*.ics/
obey pam restrictions = no
[Documents]
create mask = 0666
This is my part of share in smb.conf:
[SHARE]
path = /mnt/glusterfsreplica1/share
guest ok = yes
read only = no
writable = yes
invalid users = root,admin,@wheel
create mask = 0660
directory mask = 0770
force user = smbusr
force group = smbusr
veto oplock files = /*.ics/
-
- Posts: 8
- Joined: 2013/07/05 17:24:21
Re: Samba with no read permissions
Well, right now it has stopped happening. I think the other solution is move all the users to the same group to work with the second octet permissions. I'll be posting if something else happens and if the solution above solve the problem. Thanks for your comment, poky!