Not able to change user password

hi

I am not able to change user password from root user.
although it is saying updated successfully.
but still I am not able to login direct to abc user.
however I can login from root user by using

su - abc 
 
 [root@ue1sdp1a ~]# passwd abc
Changing password for user abc.
New password: 
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password: 
passwd: all authentication tokens updated successfully.
 

tried

sudo passwd user

command also but it does not work

 
 uname -a
Linux ae1abc1a 2.6.32-431.56.1.el6.x86_64 #1 SMP Mon Apr 20 17:00:51 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
 

---------- Post updated at 06:55 PM ---------- Previous update was at 06:51 PM ----------

some more info

# pam_tally2 -u
# chage -l abc
Last password change                                    : Nov 29, 2016
Password expires                                        : Feb 27, 2017
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : -1
Maximum number of days between password change          : 90
Number of days of warning before password expires       : 3

How are you trying to log on as this user and what symptoms do you get?

The account could be locked for direct login, prevented from login or something else entirely. It's difficult to know without seeing the output/errors/symptoms.

Robin

As rbatte1 alluded to - there are several types of logins - and you can restrict those types with the passwd command. And display them.

The passwd -S abc
will show you what the authentication system sees.

1 Like