I installed Samba on Ubuntu 20.04 and have the following /etc/samba/smb.conf
:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
workgroup = MYDOMAIN
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[myuser]
comment = My drive
create mask = 0664
directory mask = 0777
path = /data/myuser
read only = No
Whenever I create a directory from Windows 10, the permissions are:
drwxr-xr-x 2 myuser mydomain 4096 Aug 11 11:07 test2
I tried editing smb.conf
to remove create mask
and directory mask
lines. I then restarted Samba, but the permissions are still the same:
drwxr-xr-x 2 myuser mydomain 4096 Aug 11 11:16 test3
I need the permissions to be at least drwxrwxr-x
I've gone through multiple websites, with different recommendations:
create mask = 0666
, create mask = 0664
, all kinds of directory masks. It seems I can create stricter permissions with "create mask", but what I want are looser permissions.