- Jun 15, 2001
- 34,382
- 1,564
- 126
I've got a Samba share set up with a bunch of Windows 10 clients. I'm trying to set it up such that users can create, but not delete files. I thought that forcing create mode to 555 would do this, but it doesn't seem to. I'm not having a lot of luck on Google. Here's my smb.conf:
Any thoughts? If I remove "read only = no", my user can't write.
Code:
[global]
workgroup = <WORKGROUP NAME>
server string = %h server (Samba, Ubuntu)
inherit permissions = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
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 = no
[<share name>]
path = /mnt/8TB
public = no
valid users = <The username for Samba>
create mask = 555
force create mode = 555
read only = no
Any thoughts? If I remove "read only = no", my user can't write.