![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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.
|
|
||||
|
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
|
|
|||||
|
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). |
|
||||
|
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!! |
|
||||
|
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 ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|