Hi All
I'm having an issue with Samba where despite having tried various file permissions permutations such as:
Code:
create mask = 0660
directory mask = 0770
force create mode = 0660
force directory mode = 0770
- or -
Code:
create mask = 0660
force create mode = 0
security mask = 0770
force security mode = 0
directory mask = 0770
force directory mode = 0
directory security mask = 0770
force directory security mode = 0
every directory and every file which is created in my server file system, by means of samba, has file permissions 755. I have googled-around for this issue and searched various forums but none of the suggestions I've found as yet have worked.
I've attached my smb.conf below. Thank you in advance of any suggestions.
Code:
[global]
force group = sambashare
workgroup = WORKGROUP
netbios name = lancelot
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
socket options = TCP_NODELAY
usershare allow guests = yes
#option a
; create mask = 0660
; directory mask = 0770
; force create mode = 0660
; force directory mode = 0770
[homes]
comment = Home Directories
browseable = yes
writeable = yes
valid users = cai
[permissions-test]
comment = Comedy
path = /disk300-a/Comedy
browseable = yes
writeable = yes
guest ok = no
# mask is the limit
# mode is the actual value to use
#option b
create mask = 0660
directory mask = 0770
force create mode = 0660
force directory mode = 0770
#option c
; create mask = 0660
; force create mode = 0
; security mask = 0770
; force security mode = 0
; directory mask = 0770
; force directory mode = 0
; directory security mask = 0770
; force directory security mode = 0