[Samba] nss_wins: create_builtin_users: Failed to create Users

MargoAndTodd margoandtodd at gmail.com
Mon Apr 6 23:07:21 GMT 2009

Hi All,

I am getting the following error in /var/log/messages
when an XP Pro client enters the network:

nss_wins[8369]: [2009/04/06 15:17:23, 0] 

Apr  6 15:17:23 rn1 nss_wins[8369]:
create_builtin_users: Failed to create Users

I have been told in the past to add "idmap uid" and
"idmap gid" to my smb.conf and I have (no symptom change).

Anyone know how to stop/cure this error message?

Many thanks,

Two file (smb.conf, nsswitch.conf):

~~~~~~~~ testparm -s | more ~~~~~~~~~~~~~~~~
         workgroup = FOO
         netbios name = SERVER
         server string = Samba Server
         interfaces = eth0,
         null passwords = Yes
         passdb backend = tdbsam
         guest account = pcguest
         passwd program = /usr/bin/passwd %u
         passwd chat = *New*UNIX*password* %n\n 
*ReType*new*UNIX*password* %n\n 
         username map = /etc/samba/smbusers
         unix password sync = Yes
         syslog = 2
         log file = /var/log/samba/samba-log.%m
         max log size = 50
         name resolve order = host wins
         deadtime = 20160
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         printcap name = /etc/printcap
         add user script = /usr/sbin/useradd -m -G users '%u'
         delete user script = /usr/sbin/userdel -r '%u'
         add group script = /usr/sbin/groupadd '%g'
         delete group script = /usr/sbin/groupdel '%g'
         add user to group script = /usr/sbin/usermod -A '%g' '%u'
         add machine script = /usr/sbin/useradd -s /bin/false -d 
/var/lib/nobody '%u'
         logon script = scripts\logon.bat
         logon path =
         logon drive = X:
         domain logons = Yes
         os level = 65
         preferred master = Yes
         domain master = Yes
         wins support = Yes
         lock directory = /var/lock/samba
         idmap uid = 500-700
         idmap gid = 100-300
         comment = Samba (NetBIOS) Server on rn1.FOO.local
         hosts allow = 192.168.255., 127.0.0.
         hosts deny = ALL
         printing = bsd
         print command = lpr -r -P'%p' %s
         lpq command = lpq -P'%p'
         lprm command = lprm -P'%p' %j
         strict locking = No
         volume = CentOS, %v
         wide links = No

passwd:     files winbind
shadow:     files winbind
group:      files winbind
hosts:      files wins dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

More information about the samba mailing list