The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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 11:07 PM
Root Login Auditing !! jobbyjoseph SUN Solaris 3 04-05-2007 10:39 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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-22-2008
surizan surizan is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
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.
  #2 (permalink)  
Old 01-22-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
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?
  #3 (permalink)  
Old 01-23-2008
surizan surizan is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
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 (permalink)  
Old 01-28-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
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).
  #5 (permalink)  
Old 02-04-2008
tpmadigan tpmadigan is offline
Registered User
  
 

Join Date: Jan 2008
Location: The Great Delaware Valley
Posts: 2
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!!
  #6 (permalink)  
Old 02-04-2008
mr_manny mr_manny is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 144
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0