System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to reset the password for HP L2000/44 running on HP UX 11.11

SOLVED
Go to solution
vinod u
Advisor

Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi All,

Unable to reset the password for HP L2000/44 running on HP UX 11.11. I loggd in single user mode and changed the password it changed. but after that in multiuser mode its not accepting new password. How do I get my root login back.

Regards
Vinod
18 REPLIES
Nido
Trusted Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hello Vinod.

It shouldn't be the case one expects.

Try setting the simple root password or make it null (not recommended).

You can have another user created temporarily and provide it root priviledges.
Reboot the machine into multiuser mode and Check.


Let me know what your investigation says..

Good Luck!!



" Let Villagers Be Happy!! "
Robert-Jan Goossens
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi Vinod,

Are you running in trusted mode? Is shadow passwd installed?

How did you reset the password in single-user mode?

Regards,
Robert-Jan
vinod u
Advisor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi ,

How do I know in which mode system is running. I am not sure its running in trusted mode.

While booting I typed hpux -is and its booted in single user mode and i changed the passwd by passwd command. I restarted after that new password didnt worked ....

Regards
Vinod
Robert-Jan Goossens
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi again,

Run
# /usr/lbin/modprpw
This will report if is trusted or not trusted.

Run
# ll /etc/shadow
to check if you shadow passwords

---
I restarted after that new password didnt worked ....
---

Just wondering, did you use a @ or a # character in you new password for root?

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Shalom,

boot into single user mode again

passwd

Set a simple password.

reboot

log in as root.

Set password normally following normal organizational rules.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor
Solution

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

After you changed the password in single user mode, when you rebooted, did you try to login over a network connection or did you still use the console login as you di8d with single user mode? This system may have restricted root login which is controlled by the presence of the file: /etc/securetty. If it exists, root is not allowed to login except through the ports defined in this file (typically: console).


Bill Hassell, sysadmin
sujit kumar singh
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi


1) boot in single user mode, untrust the system,change the root password, reboot, logon as root and then make the system trusted again.


regards
sujit
sujit kumar singh
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

hi,

also can have a look at the suggestions made in thos thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=34362
regards
sujit
Steven E. Protter
Exalted Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Shalom,

You could also try nulling out the root passwd in the /etc/passwd file.

Then you can boot the system to multi user mode, do a quick su - root which is normally permitted even in very secure systems and set the root password in multi user mode.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
NMory
Respected Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hello Vinod:

Another thing that you could try is restoring the /etc/passwd from /usr/newconfig/etc/passwd.

This is only if the system is not trusted. Before doing it, make a backup of you current /etc/passswd in single user mode(this is very important) and then:

# cp /usr/newconfig/etc/passwd /etc/passwd
# passwd

Enter new password.

# init 3

If you are able to login with the root password, then restore your backed up /etc/passwd file to it´s original location.

Change the password again.
# passwd

Just in case, after that reboot the system and make sure everything is working normally.

LN
vinod u
Advisor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hi all,

no LUCK. its not trusted
no shadow password file
tried with null password
created one more super user ; same issue
no security file create its 0 bytes
Tried backing up passwd and resetting no luck

any other option which will stop me before I go for format

But the server is pinging from the network but cant login.
regards
vinod
vinod u
Advisor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

/etc/securetty file is present but 0 bytes nothing is there in the file

Torsten.
Acclaimed Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Any special characters in your password like "#"?

Try with a "simple" password.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nido
Trusted Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

Hello Vinod,

Keep the customize .profile and /etc/profile away from sometime and copy the standard profiles from /usr/newconfig/etc.

set /etc/hosts.equiv on the host to have access from other box while in Single User mode.

I know, As suggested you'd have set the simple/null password.

Check for man hosts.equiv for referrence.

System re-install would have been the last option but I know Admins here are smarter than Mischievous kid on your system. :-)



Good Luck!!
" Let Villagers Be Happy!! "
vinod u
Advisor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

NO LUCk !!!

Any other inputs to avoid format !! please

Regards
vinod
Aneesh Mohan
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

>>/etc/securetty file is present but 0 bytes nothing is there in the file

Remove /etc/securetty file and try with the changed password.It should work.


Regards,
Aneesh
Bill Hassell
Honored Contributor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

> /etc/securetty file is present but 0 bytes nothing is there in the file

Oops. This file should not exist if you aren't going to limit root login locations. If it is 0 bytes, then root can NEVER login. That's what this file does. If it has "console" then root can login on the console. If it haas nothing, then root can never login from anywhere.


Bill Hassell, sysadmin
vinod u
Advisor

Re: Unable to reset the password for HP L2000/44 running on HP UX 11.11

/etc/securetty this was the problem

removed this loginw as success

Thanks

vinod