[Samba] Samba4 creating share and setting permissions without windows tools

Ryan Ashley ryana at reachtechfp.com
Thu Jul 31 10:08:24 MDT 2014


Did you modify /etc/nsswitch.conf to use winbind to search for groups 
and passwords? Is winbind running?

On 07/31/2014 09:48 AM, Diego Llovet wrote:
> Hello,
>
> I need a way to set permissions to share folder without to use RSAT, I've
> not found anything about that.
>
> The samba wiki said that
>
> ---------------------
> Change permissions on folders of a share
>
>
> Changes of permissions are done using the classic *nix tools 'chmod',
> 'chown' and 'chgrp'.
>
> Example:
>
>   Code:
>
> # mkdir /srv/samba/Demo/Example/
> # chown foobar:DemoGroup /srv/samba/Demo/Example/
> # chmod 2770 /srv/samba/Demo/Example/
>
> -------------------
>
> I created a group DemoGroup with "samba-tool group add DemoGroup"
> Then, when I did
> Code:
>
> chown foobar:DemoGroup /srv/samba/Demo/Example/
>
> I got this error
>   Code:
>
> chown: invalid group: "DemoGroup"
>
> What must I do to allow groups created by samba-tool works with chown??
>
> How can I do to assign permissions to a shared folder from command line
> using the power of samba4?
>
> Thank you in advance



More information about the samba mailing list