如果系統在pam中有設置了..
一般情況
如果在
/etc/pam.d/system-auth
password required /lib/security/pam_smbpass.so nullok use_authtok try_first_pass
有如上一行....
則
[root@shlinux root]# useradd popo
[root@shlinux root]# passwd popo
Changing password for user popo.
passwd: User not known to the underlying authentication module
[root@shlinux root]# smbpasswd -a popo
New SMB password:
Retype new SMB password:
Added user popo.
[root@shlinux root]# passwd popo
Changing password for user popo.
New UNIX password:
BAD PASSWORD: it is too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.