Operating System - HP-UX
1748259 Members
3477 Online
108760 Solutions
New Discussion юеВ

Re: Can not login as root remotely and in the console/server

 
Bart Paulusse
Respected Contributor

Re: Can not login as root remotely and in the console/server

You can try to boot into single user mode. If you can logon as root then, try to vi /etc/passwd. There might be a problem with your /etc/passwd file, special character or something like that.
Suraj K Sankari
Honored Contributor

Re: Can not login as root remotely and in the console/server

Hi,
root can login from console
so if you have console access then try from console.

Suraj
monster00
Advisor

Re: Can not login as root remotely and in the console/server

hi can't login.. same result as logging in remotely...


no shell

avizen9
Esteemed Contributor

Re: Can not login as root remotely and in the console/server

Hello Monster00,

can you please try to boot this server/station in single user mode, once you done,

create a new account with 0:3 with /sbin/sh shell (owner =0 and group =3) to just verify the issue, you may just add this acccount in /etc/passwrd file

and then try to login with new created account. what will be result. let us know.
monster00
Advisor

Re: Can not login as root remotely and in the console/server

i already sign in single user mode
changed the root password.
how to create a new account? /usr/sbin/sam is not working...


tried logging in using the new passwd. still not working
Bart Paulusse
Respected Contributor

Re: Can not login as root remotely and in the console/server

in single user mode:
create directories /root2 and /root3
edit /etc/passwd
manually add these lines:
root2::0:3::/root2:/sbin/sh
root3::0:3::/root3:/usr/bin/sh

then boot to run level 3 and see if you can logon with root equivalent users root2 and root3
monster00
Advisor

Re: Can not login as root remotely and in the console/server

hi tried this .. but can't edit the /etc/passwd ... the editor is not working.. vi
R.K. #
Honored Contributor

Re: Can not login as root remotely and in the console/server

Hello,

To edit /etc/passwd file you can use command:
# /usr/sbin/vipw

Regds,
R.K.
Don't fix what ain't broke
monster00
Advisor

Re: Can not login as root remotely and in the console/server


vipw does not exist.. even the edit..

no way to edit passwd...
u have other suggestions?
monster00
Advisor

Re: Can not login as root remotely and in the console/server

hey guys! thanks a lot for the help.
fixed the problem.