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

Rowland Penny rowlandpenny at googlemail.com
Thu Jul 31 11:56:31 MDT 2014


On 31/07/14 18:47, Diego Llovet wrote:
> Hi,
> wbinfo -g return the groups that I created withh samba-toll group add IT
> getent group IT return nothing
>

That is where your problem lies, you need to be able to run 'getent 
passwd' and have it return your users and 'getent group <groupname>' 
needs to return info about the group.

Could you post your smb.conf, /etc/nsswitch and how you provisioned the 
samba4 server.

Rowland

>
>
> 2014-07-31 13:18 GMT-03:00 Rowland Penny <rowlandpenny at googlemail.com 
> <mailto:rowlandpenny at googlemail.com>>:
>
>     On 31/07/14 14:48, 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
>
>     Hi, what does 'wbinfo -g' and 'getent group DemoGroup' return ?
>
>     Rowland
>
>     -- 
>     To unsubscribe from this list go to the following URL and read the
>     instructions: https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list