Cannot login root | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Cannot login root

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-22-2008
surizan surizan is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 28 January 2008, 4:06 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Cannot login root

With my SSH, my HP-UX cannot login to root. It will come out a message su: unknown id: root. But I can login by user oracle. I also cannot login to console either by using root or oracle anymore. What shall I do.
Sponsored Links
    #2  
Old 01-22-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 28 August 2014, 12:20 PM EDT
Location: Switzerland - GE
Posts: 5,645
Thanks: 152
Thanked 391 Times in 370 Posts
If you dont mind, I will just explain my "fuss":

>With my SSH, my HP-UX cannot login to root. # From where? a pc?
# your hpux box to what other box?...

>It will come out a message su: unknown id: root. # This is very confusing:
# su - is not ssh
> - unknown id: root # Well perhaps to be diferrent UID 0 has another name on this box (Should give a try seems to be fun...)
>But I can login by user oracle. # Did you try as oracle to do a su - after?

>I also cannot login to console either by using root or oracle anymore.# Let me think a little more...

What have you to say?
Sponsored Links
    #3  
Old 01-23-2008
surizan surizan is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 28 January 2008, 4:06 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry for my broken english. This is what actually happening. I connecting HP-UX using SSH on my WIndows PC. I login with user id oracle before I using su root to get to root. I create a shadow file in etc. Then I accidentally type a command passwd and enter. It prompt for enter new password for root. I enter with a blank password. It prompt for reenter new password.I enter with a blank password. It prompt me file has unchanged. I exit root and try su root to get to root. After i key in my password and enter, it prompt su: unknown id: root. This is what happening. I exit SSH and open it back. Connect to HP-UX by oracle user id and try to get to root by su root. It stil prompt me su: unknown id: root. Just like I enter a wrong password which is I don't. Since I cannot get to root by SSH. I try to connect to HP-UX by console. Neither oracle or root can get to HP-UX. It prompt me login incorrect. What I'm suppose to do to fix this problem. Thanks
    #4  
Old 01-28-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 28 August 2014, 12:20 PM EDT
Location: Switzerland - GE
Posts: 5,645
Thanks: 152
Thanked 391 Times in 370 Posts
You are in trouble!
(Sorry for the delayed answer..)
Are you still in the same situation?
If yes what can you tell about your HPUX box, what model (cmd: model), has it a console? what else? (tape drive....)
What do you know about HP-UX, what OS is it running (uname -r, uname -a).
Sponsored Links
    #5  
Old 02-04-2008
tpmadigan tpmadigan is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 20 November 2009, 12:52 PM EST
Location: The Great Delaware Valley
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
It sounds like the password for root has been wiped out. You should reboot your HP-UX server into single-user mode. Once you are at the prompt, you can then set the password for root using the passwd command. Once the password is set, you can then reboot normally. Also, check to see if the file /etc/securetty exists; if it does, make sure that there is a line in the file that reads:

console

This will allow you to log in as root from the console. Finally, if you really need to allow SSH logins to login directly as root (bad idea!!), make sure that the "PermitRootLogin" parameter is set to "yes" (no quotes). For much better security, however, you should set this parameter to "no" and always log in as a non-privileged user. You can always su to root, if needed. Best of luck!!
Sponsored Links
    #6  
Old 02-04-2008
mr_manny mr_manny is offline
Registered User
 
Join Date: Oct 2005
Last Activity: 15 November 2013, 4:46 PM EST
Posts: 154
Thanks: 1
Thanked 2 Times in 2 Posts
If you have omniBACK/dataPROTECTOR in your environment, you could try the following:

Make a copy of your systems /etc/passwd file.
Edit the copy by associating your userIDs encrypted password for root's account.
Perform a backup of your copied/modified passwd file with omniBACK/dataPROTECTOR.
Lastly, restore the modified passwd file over the systems /etc/passwd file.

now log-in, using your userIDs passwd...no reboot required
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with CDE Root Login irda HP-UX 4 06-19-2009 10:14 AM
why I cannot login by root rainbow_bean AIX 10 03-30-2008 09:25 PM
Can't login root account due to can't find root shell neikel AIX 2 01-30-2008 10:07 PM
root login breigner AIX 2 09-16-2004 12:49 PM
Lost root password / Can't login as root Perderabo Answers to Frequently Asked Questions 0 06-22-2004 07:40 PM



All times are GMT -4. The time now is 11:16 PM.