[Samba] Change default GID of users

Bruno Vane broonu at gmail.com
Thu Aug 29 11:06:02 MDT 2013


Thank you Marc!


2013/8/29 Marc Muehlfeld <samba at marc-muehlfeld.de>

> Hello Bruno,
>
> Am 29.08.2013 16:11, schrieb Bruno Vane:
>
>  I had this mapping in nslcd.conf
>> map     passwd  gidNumber               primaryGroupID
>>
>> I need the gidNumber to be "100" because this is gidnumber of group
>> "users"
>> in my Ubuntu servers.
>> I will disable this mapping and test if everything is OK.
>>
>
> The mapping is not just for mapping one field to an other. You can replace
> values, too or do other things (see manpage for more).
>
> You can hardcode the mapping:
>
> map     passwd  gidNumber          "666"
>
>
> # getent passwd
> ...
> Administrator:*:10000:666::/**home/Administrator:/bin/bash
> technik:*:10001:666:Technik:/**home/technik:/bin/false
> demo1:*:10002:666:Demo User1:/home/demo1:/bin/sh
>
>
> And all your domain accounts have primary group 666 :-)
>
>
> Regards,
> Marc
>



-- 

Bruno Vane
HPM Tecnologia
(24) 9278-7195 / (24) 3345-0002
skype: broonu

www.zamix.com.br | www.superonda.com.br


More information about the samba mailing list