1833756 Members
2547 Online
110063 Solutions
New Discussion

Password Reset issue.

 
Mitchell Gaddy
Occasional Contributor

Password Reset issue.

I reset a password using sam. But when I try to login as the user to test it out I keep getting "password change by root" and sends me back to a login prompt. Is there a step that I'm missing? I check to see if the system was using ldap using nsquery passwd username and its going through the /etc/passwd.
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Password Reset issue.

Execute /usr/lbin/getprpw user and note the values in the lockout field. If any of them are '1' rather than '0' then the account is locked. Next do a man getprpw and that will tell you how to interpret the positional values within the lockout field. Other things to look for are missing home directory or invalid tty device. (All of this assumes you are setup as a Trusted system.
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: Password Reset issue.

Hi Gaddy ,

Check if the user is deactivated , go to SAM and reactivate and , login again.

Good luck,

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Mitchell Gaddy
Occasional Contributor

Re: Password Reset issue.

I used the command and everything looks ok. I recreated the account and I'm able to su to the account and enter the password without any problems. When I try to telnet to the server this is where it doesn't recognize the password.
baiju_3
Esteemed Contributor

Re: Password Reset issue.

try /usr/lbin/modprpw -k username .

You can force a user password to expire by

passwd -f username.

Next time when user logs in , he has to login with old passwd and immediately select a new passwd .

thx,
bl.

Good things Just Got better (Plz,not stolen from advertisement -:) )
A. Clay Stephenson
Acclaimed Contributor

Re: Password Reset issue.

Okay, this sounds like you are using some characters which have special meanings in the password. e.g '#' - the defgault erase character before it is reset by a stty command in .profile. Possibly '@' - EOL.

Another quirk I discovered when using Microsoft's FTP client was passwords beginning with "-". The first "-" was eaten so to use "-topsecret" as a password, you would actually have to enter "--topsecret" but that was FTP only not telnet. The fact that as an ordinary user you can su to this user and sucessfully login indicates that the password itself is valid. However, this is done after a .profile with more sane stty settings has already been run --- not the case with an initial login via telnet. You are probably the victim of a '#' in the password.
If it ain't broke, I can fix that.