[Samba] Re: Failed groupmap

Igor Belyi sambauser at katehok.ac93.org
Wed Oct 13 16:09:30 GMT 2004

Users (S-1-5-32-545) is a local group. Domain users should have Domain 
group from their domain as their primary group. I would recommend to 
change mapping by removing 'Users -> users' map and adding 'Domain Users 
-> users' one.

The problem can be also caused if you already have 'Domain Users -> 
users' and add 'Users -> users' since Samba mapps gid -> SID by finding 
the first SID -> gid mapping with the right gid and will fail if 'Users 
-> users' is the first map it encounters.

Hope it helps,

Anton Krosnev wrote:
> I have problem adding users after I set up a goupmap. Before there was no
> problem.
> net groupmap ntgroup=Users unixgroup=users
> Users (S-1-5-32-545) -> users
> useradd pesho -g users
> pdbedit -a pesho
> new password:
> retype new password:
> tdb_update_sam: Failing to store a SAM_ACCOUNT for [pesho] without a primary
> group RID
> Unable to add user! (does it already exist?)
> pesho of cource doesn´t exist
> pdbedit -L | grep pesho
> returns nothing.
> I´m using two passwd backends:
>   passdb backend = tdbsam:/etc/samba/passdb.tdb \
>                    smbpasswd:/etc/samba/smbpasswd
> In this case I´m trying to add pesho to tdbsam,
> when I remove it and only smbpasswd was in the smb.conf
> I was able to add it sucessfully.
> I´m using  samba 3.0.7-2.FC1.
> Can somebody tell me what have I done wrong?
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.

More information about the samba mailing list