The adduser part works
but the smbpasswd give the same error. It looks it cannot link to the system user database.
User administrator exist. It is created just before.
Code:
[admin@wl-hdd bin]$ ./smbpasswd administrator
New SMB password:
Retype new SMB password:
build_sam_account: smbpasswd database is corrupt! username administrator with uid 0 is not in unix passwd database!
Failed to find entry for user administrator.
Failed to modify password entry for user administrator
another example:
Code:
[admin@wl-hdd bin]$ ./adduser -h /tmp/hd -s /bin/sh -G root jocky
adduser: /tmp/hd: File exists
Changing password for jocky
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Bad password: too simple.
Warning: weak password (continuing).
Re-enter new password:
Password changed.
[admin@wl-hdd bin]$ ./smbpasswd -a jocky
New SMB password:
Retype new SMB password:
Failed to initialise SAM_ACCOUNT for user jocky. Does this user exist in the UNIX password database ?
Failed to modify password entry for user jocky
Some other example: User jocky can login:
Code:
[admin@wl-hdd bin]$ login jocky
Password:
[jocky@wl-hdd hd]$ cd bin
[jocky@wl-hdd bin]$ ./smbpasswd -a jocky
-sh: ./smbpasswd: Permission denied
[jocky@wl-hdd bin]$ exit
[admin@wl-hdd bin]$ ./smbpasswd -a admin
New SMB password:
Retype new SMB password:
build_sam_account: smbpasswd database is corrupt! username admin with uid 0 is not in unix passwd database!
Failed to initialise SAM_ACCOUNT for user admin. Does this user exist in the UNIX password database ?
Failed to modify password entry for user admin