I keep getting this error:
Code:
User nobody in passdb, but getpwnam() fails!
in smb log.
Also, smbadduser give this:
Code:
./smbpasswd -c /tmp/hd/conf/usr/local/samba/lib/smb.conf -a guest
New SMB password:
Retype new SMB password:
build_sam_account: smbpasswd database is corrupt! username guest with uid 99 is not in unix passwd database!
Failed to initialise SAM_ACCOUNT for user guest. Does this user exist in the UNIX password database ?
Failed to modify password entry for user guest
Of course, I have mounted etc from the /conf/etc, and my passwd file has a guest user:
Code:
[admin@wl-hdd etc]$ cat passwd
admin:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
hugo:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:500:500:users:/home/hugo:/bin/sh
ftp::501:501:Linux User,,,:/home/ftp:/bin/sh
Administrator:$1$$PARKLi5sT.PXFt/m702ca/:502:502:Linux User,,,:/home/Administrator:/bin/sh
guest:xxxxxxxxxxxxxxxxxxxxx:503:503:Linux User,,,:/home/guest:/bin/sh
I also have this if I try the guest account:
Code:
[admin@wl-hdd bin]$ ./smbpasswd -c /tmp/hd/conf/usr/local/samba/lib/smb.conf -a nobody
New SMB password:
Retype new SMB password:
Could not find gest account via getpwnam()! (nobody)
Failed to modify entry for user nobody.
Failed to modify password entry for user nobody
My smb.conf is as simple as possible, but it shouldn't interfere with the adduser.
Do you see what could be missing?