[Samba] Some questions about sharing and permission.

Rowland penny rpenny at samba.org
Fri May 14 12:45:33 UTC 2021


On 14/05/2021 13:27, Jason Long via samba wrote:
> Hello,
> According to "https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs#Adding_a_Share" tutorial, I added a directory and set a permission for it as below:
>
> # mkdir -p /home/share/
> # chown root:"login2" share/
> # chmod 0770 share/
> # chcon -t samba_share_t /home/share/
>
> Then, added below lines into "/usr/local/samba/etc/smb.conf" file:
>
> [Share]
> path = /home/share
> writable = yes
> browsable = yes
> acl_xattr:ignore system acl = yes


Can I ask, if you are following the wikipage, why did you use 'writable 
= yes' instead of the 'read only = no' as shown on the page ?

Not that it makes any difference, they both mean the same 😁

> The members of "login2" groups can read and write "share" directory, but other can't. If I want other groups or users have read permission, but not write permission, then what should I do?


Start a Windows client, navigate to the share and set the required 
permissions from there.

Rowland





More information about the samba mailing list