Hit a problem today changing a new user password today in Linux.
[root@prd01oua-dbg2
~]# passwd emcadm
Changing
password for user emcadm.
passwd: Authentication token
manipulation error
[root@prd01oua-dbg2
pam.d]# ls -ls system-auth
4
-rw-r--r-- 1 root root 1205 Feb 2 10:51 system-auth
In
system.auth
password
requisite pam_pwquality.so try_first_pass local_users_only
retry=3 authtok_type=
#password
sufficient pam_unix.so md5 shadow nullok try_first_pass
use_authtok
password
required pam_deny.so
change
to
password
requisite pam_pwquality.so try_first_pass
local_users_only retry=3 authtok_type=
password
sufficient pam_unix.so md5 shadow nullok try_first_pass
use_authtok
password
required pam_deny.so
Next we hit a password length problem
[root@prd01oua-dbg2
pam.d]# passwd emcadm
Changing
password for user emcadm.
New
password:
BAD
PASSWORD: The password is shorter than 15 characters
/etc/security/pwquality.conf
#
Password Minimum Length should be configured
minlen=8
Changing
password for user emcadm.
New
password:
Retype
new password:
passwd:
all authentication tokens updated successfully.
[root@prd01oua-dbg1
security]#
Et voilla.....