Answer the question
In order to leave comments, you need to log in
Why does Samba prevent a user from writing files to the home directory without permission for the group to write?
Started learning Samba. Installed: version 2:4.5.12+dfsg-2+deb9u4 on Debian 9.
Set up a minimal config for user access to the home directory:
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
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
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0644
directory mask = 0755
valid users = %S
path = /home/%S/samba
Answer the question
In order to leave comments, you need to log in
The essence of the question is this: why does Samba not allow the user to write files to the home directory (and subdirectories) if it has permissions, for example, 755?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question