Operating System - HP-UX
1834499 Members
2866 Online
110068 Solutions
New Discussion

HP-Unix server login problem

 
SOLVED
Go to solution
madan_2
Advisor

HP-Unix server login problem

After changing root password I am not able to login to HP-Unix B11.11 server form another windows pc, as I am able to SSH this server from other servers, I am able login this server from only one pc from that I have changed root password, this server is not trusted systems.

17 REPLIES 17
Suraj K Sankari
Honored Contributor

Re: HP-Unix server login problem

Hi Madan,

First try to login as a normal user then switch user to root.

Before changing the root passwd are you login to the server using root because for security reason root login is restricted from other terminal expect console.


Suraj
madan_2
Advisor

Re: HP-Unix server login problem

I am also not able to login through normal user
OFC_EDM
Respected Contributor

Re: HP-Unix server login problem

How did you change the password?

If you were su'ing to root from another user are you sure you su'd successfully? I ask because there once was a guy (me?? hmmm). That changed the passwd for root on a system.

But I typed too fast and didn't notice that my su to root wasn't successful.

I typed
passwd (without specifying the user name).
Then changed the password.

Now my regular account had it's password changed and not root.

So when I logged in as root I wasn't successful as I was trying the new password.

When I logged in as my regular account I couldn't because it had the new password.

After a 1 second heart attack (I was a newbie then) where I thought I locked myself out of the system.

I realized my mistake. Logged back in as root with the old passwd...and well you get the idea.

I hope your issue is as trivial.

If not boot into single user mode. And restore the passwd file from before you changed the passwd.

OR//

Are you able to SSH in as root from that other server? Did you try changing the password again?

OR//

If you're able to SSH into the server as root?
Did you make a backup copy of /etc/passwd before making the password change?
If so SSH in as root and I think you could just copy that back as you're not on a trusted system.

Cheers

The Devil is in the detail.
madan_2
Advisor

Re: HP-Unix server login problem

Hi Kevin

I am able to login this server form only one pc and from other HP-unix servers as SSH.
sreekanthtm
Trusted Contributor

Re: HP-Unix server login problem

Hi,

>> as I am able to SSH this server from other servers. --> Are you able to login as root to this server? then reset the passwd again.

What is the error message that you are getting, when you are trying to login??

Rgds
Sreekanth
madan_2
Advisor

Re: HP-Unix server login problem

Hi Sreekanthtm

Yes I am login as root from other server
sreekanthtm
Trusted Contributor

Re: HP-Unix server login problem

Did you try to reset the passwd again?
Then try to login.....
If still you are facing issue, please post the exact error message that you are getiing.

Rgds
Sreekanth
Ganesan R
Honored Contributor

Re: HP-Unix server login problem

Hi,

You need to provide the details clearly to help you out...

You said, you are able to login through SSH...is it passwordless login??

You also said, you are able to login from one pc where you changed the root password... what mode? via telnet or rlogin?

If you are able to login from one machine then it is not going to be password issue..

Is there any special characters in your passwords..

It is much useful if you provide more details and error which you are getting..
Best wishes,

Ganesh.

Re: HP-Unix server login problem

It sounds ambigous, more information need to be given.You can login to the server through another PC using SSH but HOW to you log in?

When you can login to the server from one PC and not able from other PCs then i think it might not be a password issue here.Kindly shed more light please!!
madan_2
Advisor

Re: HP-Unix server login problem

Hi All

there is no any password issue, no passwordless ssh is configured, when I am trying to login from other pc usong telnet or putty i am getting "incorrect login" message.
sreekanthtm
Trusted Contributor
Solution

Re: HP-Unix server login problem

One more doubt!!!

Is there any special character like @ or # in your root password. If yes you have to change it. Because these special characters have special meaning (Terminal specific).

>>> I am able login this server from only one pc from that I have changed root password --> Reset the passwd once again, It should not contain any special characters.


Cheers
Sreekanth

Re: HP-Unix server login problem

Hi Madan,
<...I am able login this server from only one pc..> Since you are able to login to the server from the PC where you had changed the root password, i would suggest that you change the root password again but with a simpler password i.e root123,create an account then try to login to the server through the other PCs(telnet/putty) then login using the newly created account then su root.

Regards,
DEO.
madan_2
Advisor

Re: HP-Unix server login problem

Hi

I have changed root password and now i am able to login using ssh but i am not able login through telnet, telnet service is enabled and i checked that using

teamapp1 # netstat -an |grep LISTEN |grep 23
tcp 0 0 *.2301 *.* LISTEN
tcp 0 0 *.23 *.* LISTEN

but when i telnet to server and enter username & password then it gives "incorrect login"
sreekanthtm
Trusted Contributor

Re: HP-Unix server login problem

Hi,

>> I have changed root password and now i am able to login -- May I know what was the issue? What was the old root passwd?.

The error message "Incorrect login" tells that the problem is with username or password. Please reset the passwd to any simple passwd as sugested and let us know the result. Its just 1 min job.

Rgds
Sreekanth
madan_2
Advisor

Re: HP-Unix server login problem

Hi sreekanthtm


previous root password was complex and now I have changed it as simple one now I am able to telnet server using simple password, why I am facing this problem its because of not trusted system or any other reason?

prasadb
Super Advisor

Re: HP-Unix server login problem

Dear Madan,

you have not assigned points to these gurus who have taken efforts and precious time to solve your problem..

assign them poper points and appreciate their efforts..

Thank you,
prasad B
Ganesan R
Honored Contributor

Re: HP-Unix server login problem

Hi,

It is not because of the trusted system. Some special characters will not properly interpreted by HP-UX. See the below from passwd man page.

WARNINGS
Avoid password characters which have special meaning to the tty driver, such as # (erase) and @ (kill). You may not be able to login with these characters.


Hope you are clear now.
Best wishes,

Ganesh.