Cannot login root


 
Thread Tools Search this Thread
Operating Systems HP-UX Cannot login root
# 1  
Old 01-22-2008
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  
Old 01-22-2008
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  
Old 01-23-2008
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
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  
Old 02-04-2008
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  
Old 02-04-2008
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 Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Su root or login root

Hi, I find there is some customized linux with application. When I use login account root and type the password. It is not allow to login. But if I login with specified user and password. Then I use command "su - " and type root passwd. It allow you to switch to "root" account . Or if i... (14 Replies)
Discussion started by: chuikingman
14 Replies

2. AIX

why I cannot login by root

I can use sudo su to root from my user id through ssh. Also can change root password. However, I cannnot login by root from ssh. Does any body know why? (10 Replies)
Discussion started by: rainbow_bean
10 Replies

3. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

4. UNIX Desktop Questions & Answers

only root can login through X window

Dear Friends I'm using Hp-unix release b.11.11 and i'm facing a problem to login through telnet session. i can login only by user root but other users can not login. but if i use x window application like (reflection X) all users can login with no problem. please kindly advice me on how to... (0 Replies)
Discussion started by: hai_jab
0 Replies

5. Solaris

login error as root

Hi i am using sun netra20 server ruuning solaris 9 and while i trying to login as root its showing error as shown below. SunOS 5.9 login:root password: Not on system console Connection to system closed by foreign host But i can login as scadm and su to root...then it is goin to root... (1 Reply)
Discussion started by: gini
1 Replies

6. Solaris

How to allow root login from a specified terminal ?

I want to enable root login just from one terminal machine, can i do that via /etc/default/login in console=/dev/console line ? and if so what i have to type exactly, another question is it normal to edit the files inside defaults directly ? or i can copy it to /etc/ and edit it there and its... (3 Replies)
Discussion started by: XP_2600
3 Replies

7. Solaris

Root login password

Hello all, I've a problem with root login password in Solaris. After I installed a patch the root password became empty, so to login as root I don't have to type any password, just username: root. I've tried the passwd command but it still doesn't work... Does anyone knows how can I solve this?... (1 Reply)
Discussion started by: pmpx
1 Replies

8. Solaris

sunOS 4.x.x root login

I have an old (I mean "dinosaur old") server that is running SunOS 4.1xxx. I need to allow root login ONLY on the console. I've looked in /etc/default for the login file for the "console=/dev/console" parameter is, but there's no 'default" dir in /etc. Can someone help? Thanks (2 Replies)
Discussion started by: antalexi
2 Replies

9. AIX

root login

How do I make it so user "root" can not log directly into an AIX server? I want a user to be able to SU to it but not log into it to keep a log (2 Replies)
Discussion started by: breigner
2 Replies

10. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies
Login or Register to Ask a Question