Diego Llovet
2014-Jul-31 13:48 UTC
[Samba] Samba4 creating share and setting permissions without windows tools
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
Ryan Ashley
2014-Jul-31 16:08 UTC
[Samba] Samba4 creating share and setting permissions without windows tools
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
Rowland Penny
2014-Jul-31 16:18 UTC
[Samba] Samba4 creating share and setting permissions without windows tools
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 advanceHi, what does 'wbinfo -g' and 'getent group DemoGroup' return ? Rowland