Operating System - HP-UX
1834434 Members
2287 Online
110067 Solutions
New Discussion

Re: Not able to reset the users password from root ID

 
Francis Tamilarasan
New Member

Not able to reset the users password from root ID

Hi All,

Iam not able to reset the users password from root ID. Through SAM, I can able to reset the password and Im getting some numbers as password. But when I trying to login, Im getting following error after typing username

Telnet TERMINAL-SPEED option ON

HP-UX uxmad01 B.10.20 U 9000/889 (ttyp6)

login: kumbesh
Your password was changed by root on Thu Jan 1 00:00:00 GMT 1970
Last successful login for kumbesh: Tue Nov 30 09:09:50 GMT 2004 on ttyp0
Last unsuccessful login for kumbesh: Tue Nov 30 09:25:37 GMT 2004 on ttyp0
You don't have a password.
ulimit: Not owner
Login aborted due to no password.

Wait for login exit: ..

Can anyone help me to resolve this problem.

Regards
Francis.A

10 REPLIES 10
Stf
Esteemed Contributor

Re: Not able to reset the users password from root ID

Hello,

try log into your system as root,

# passwd kumbesh
type your new password and confirm

and try to log in as kumbesh

if this not works check your kumbesh's line in /etc/passwd file to see if there is no mistake.

Stf
Francis Tamilarasan
New Member

Re: Not able to reset the users password from root ID

Hi

while trying to change the password, Im getting following error.

# passwd kumbesh

Password cannot be changed. Reason: Not allowed to execute passwd for the given user.
#

** I have check /etc/passwd file also. It nothing wrong in this.

Its anything related to /tcb/files/auth/*

regards
Francis.A
Victor BERRIDGE
Honored Contributor

Re: Not able to reset the users password from root ID

You are on a trusted box...
So yes its related to
tcb/files/auth/*

The best way is to start again with sam...
But check for the user, in the action menu -Does propose Deactivate or Reactivate account?...
If account is not deactivated then when changing a passwd you get a number as passwd for next connection. This time It will / should ask you to change the passwd
You have to enter a valid format passwd (6 char min - 1 numeral min I think)

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: Not able to reset the users password from root ID

Im quite sure the account is locked so reactivate the account and all should work after...

All the best
Victor
P.S.
I just tested and its exactly that... you get rejected even after changing the passwd...
So reactivate the account with sam!
Victor BERRIDGE
Honored Contributor

Re: Not able to reset the users password from root ID

login: toto
Your password was changed by logadm on Thu Jan 1 00:00:00 GMT 1970
Last successful login for toto: Tue Nov 30 11:28:36 GMT 2004 on ttyp4
Last unsuccessful login for toto: Tue Nov 30 11:26:54 GMT 2004 on ttyp4
You don't have a password.
Enter your user number here:907
Last successful password change for toto: NEVER
Last unsuccessful password change for toto: NEVER

New password:



All the best
Victor
Bharat Katkar
Honored Contributor

Re: Not able to reset the users password from root ID

Hi,
Check the earlier suggestion of activating the account and assigning password. Also refer to doc attached on Trusted System which will take you thr' the different commands in TCB systems.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
MarkSyder
Honored Contributor

Re: Not able to reset the users password from root ID

Is this a NIS system? If so, try yppasswd.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
ConnieK
Regular Advisor

Re: Not able to reset the users password from root ID

Francis,

This sounds like a permission problem to me. Check your file parameter/owner-group settings on /etc/passwd and /usr/bin/passwd. Respectively, they should be:

--r--r--r /etc/passwd root sys

-r-sr-xr-x /usr/bin/passwd root bin

Good luck!

Connie
Independent by nature
bhavin asokan
Honored Contributor

Re: Not able to reset the users password from root ID

hi,
i think the passwd life time has expired.you can go through sam --users--and edit system policies for that user.it may solve the problem.


regds,
Mark Greene_1
Honored Contributor

Re: Not able to reset the users password from root ID

"Password cannot be changed. Reason: Not allowed to execute passwd for the given user."

Francis,

When you log in as root, are you logging directly in as root, or logging in under a non-root ID and then switching to root? And if so you need to to make sure you do "su -" or "su - root", and not just "su" or "su root".

mark
the future will be a lot like now, only later