dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.5k stars 509 forks source link

How to understand the `admins` & `writelist` section in `-s` command #415

Closed LiyuCode closed 2 years ago

LiyuCode commented 2 years ago
  1. admins section

What are the senorias that the admins section can be used ?

Say, we can define an vol/folder is readable to all (include guest) but be writable to only specified users by assigning readonly section as yes and put the users in writelist section. For instance, tried -s "Shared;/mnt/Shared;yes;yes;yes;all;none;user1,user2", it will make the vol /mnt/Shared is publicly readable but only user1 and user2 can update (add/remove) its content, not need to add the users in admins section.

For users in admins section, what are the special changes(or access rights) it will brings to them ?

  1. writelist section

How about the writelist section? After some Googling, the only situation I found is to grant users write right when readonly is yes, like the example above. Are there other situations?

Many thanks ~