maybe your commands are wrong: for example: mkdir -p /fileserver/sales useradd -m sample-u1 usermod sample-u1 -G sales #### you need to create the group before smbpasswd -a sample-u1 groupadd sales ##### FIX ###### chgrp -R sales /fileserver/sales
2014-09-24 17:06 GMT+02:00 Gokan Atmaca <linux.go...@gmail.com>: > hello > > How can I give permissions based on the groups SAMBA. ? > > for example: > mkdir -p /fileserver/sales > useradd -m sample-u1 > usermod sample-u1 -G sales > smbpasswd -a sample-u1 > groupadd sales > chgrp -R sales /fileserver/sales > > > Smb.conf; > > [sales] > comment = sales > browseable = yes > path = /fileserver/sales > valid users = @sales > force users = @sales > force group = @sales > write list = @sales > writable = Yes > readonly = No > create mode = 0770 > directory mode = 0770 > > > Thanks for the reply. As I am getting an error. > "group name could not be found" > > error jpeg; > http://i.hizliresim.com/78VLlW.jpg > > in addition OS: > root@debian:/etc/samba# cat /etc/*-release > PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" > NAME="Debian GNU/Linux" > VERSION_ID="7" > VERSION="7 (wheezy)" > ID=debian > ANSI_COLOR="1;31" > HOME_URL="http://www.debian.org/" > SUPPORT_URL="http://www.debian.org/support/" > BUG_REPORT_URL="http://bugs.debian.org/" > > Smb.conf; > > Please Check here; > http://paste.debian.net/120811/ > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > https://lists.debian.org/CAHg8tEA2fijBX8hGBKdT3NTPr8LG4GEj=6pZo4c71QV8X=v...@mail.gmail.com > -- esta es mi vida e me la vivo hasta que dios quiera -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAE7pJ3Cw_ReGfWqqJ4kcg=jzvulppa0fuff04uakj63stv7...@mail.gmail.com