[Samba] error when adding a new user

Guido Lorenzutti guido at lorenzutti.com.ar
Wed Sep 7 03:28:06 GMT 2005

Hi people, i having the following problem:

useradd -s /bin/false -g users test
smbpasswd -a test
New SMB password:
Retype new SMB password:
tdb_update_sam: Failing to store a SAM_ACCOUNT for [test] without a 
primary group RID
Failed to add entry for user test.
Failed to modify password entry for user test

The "users" group exists,

grep users /etc/group

Any ideas? I fix this adding a new group with the name of the username 
and adding the user to this group. Then, it works de smbpasswd -a.
Why this could happend?

More information about the samba mailing list