[Samba] Group

Gokan Atmaca linux.gokan at gmail.com
Sun Sep 14 06:01:30 MDT 2014


*in addition **OS*:
 root at 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/"


On Sun, Sep 14, 2014 at 2:50 PM, Gokan Atmaca <linux.gokan at gmail.com> wrote:

> >Something like:
> >useradd gokan
> >smbpasswd -a gokan
> >groupadd sales
> >useradd -G sales gokan
>
> Yes
>
> error jpeg;
> http://i.hizliresim.com/78VLlW.jpg
>
>
>
>
> On Sun, Sep 14, 2014 at 2:25 PM, steve <steve at steve-ss.com> wrote:
>
>> On Sun, 2014-09-14 at 13:51 +0300, Gokan Atmaca wrote:
>> > Hello
>> >
>> >
>> > Thanks for the reply. As I am getting an error.
>> > "group name could not be found"
>>
>> Something like:
>>
>> useradd gokan
>> smbpasswd -a gokan
>> groupadd sales
>> useradd -G sales gokan
>>
>> ?
>>
>> >
>> >
>> > On Sun, Sep 14, 2014 at 1:22 PM, steve <steve at steve-ss.com> wrote:
>> >         On Sun, 2014-09-14 at 12:50 +0300, Gokan Atmaca wrote:
>> >         > revised:
>> >         >
>> >         > usermod sample-u1 -G sales
>> >         >
>> >         > excuse me
>> >         >
>> >         > On Sun, Sep 14, 2014 at 12:49 PM, Gokan Atmaca
>> >         <linux.gokan at gmail.com>
>> >         > wrote:
>> >         >
>> >         > > hello
>> >         > >
>> >         > > How can I give permissions based on the groups SAMBA. ?
>> >         > >
>> >         > > for example:
>> >         > > mkdir -p /fileserver/sales
>> >         > > useradd -m sample-u1
>> >         > > 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
>> >         > >
>> >         > >
>> >         > >
>> >         > >
>> >
>> >
>> >         Probably easier not to use smb.conf:
>> >         [sales]
>> >         path = /fileserver/sales
>> >         read only = no
>> >
>> >         chmod 1770 /fileserver/sales
>> >         chmod g+s /fileserver/sales
>> >         setfacl -d -m g:sales:rw /fileserver/sales
>> >
>> >         HTH,
>> >         Steve
>> >
>> >
>> >
>> >         --
>> >         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