1

I have this in smb.conf

[global]
security = user
guest account = nobody
map to guest = Bad User

[myshare]
path = /var/myshare
available = yes
browsable = yes
guest ok = yes
read only = no
force create mode = 0775

This allows anonymous access for users to myshare. I'd like to create a directory /var/myshare/permanent that users can't delete. Users should be able to create/modify/delete files and directories in /var/myshare and /var/myshare/permanent. Is this possible with anonymous access shares?

tok
  • 153
  • 5

1 Answers1

0

The easiest way is to set the append attribute in linux.

# chattr +a permanent

In this case you can write into the directory but cannot delete it until you remove the attribute.