1833038 Members
2507 Online
110049 Solutions
New Discussion

Hi all

 
Neelmani Pandey
Frequent Advisor

Hi all

Iam not able to login from root in Hp-ux 11.23,As at the same time i can login through
user account n can get it root level priveldge......using su ,Same happen at console too.....

ThanksAll.....
6 REPLIES 6
Mustafa Gulercan
Respected Contributor

Re: Hi all

hi;
- root account is disabled if you are running in trusted mode.

To enable root login use:

# /usr/lbin/modprpw -k root

- check /etc/securetty file.

regards;
Neelmani Pandey
Frequent Advisor

Re: Hi all

My system is not trusted, and i still have the same problem..
and i checked /etc/securetty file too..
Fabian Briseño
Esteemed Contributor

Re: Hi all

hello neelmani.

Does it display some kind of error message when you try to log on ?.

Knowledge is power.
Peter Godron
Honored Contributor

Re: Hi all

Hi,
and welcome to the forums !

Depending on what error message you get, I suspect somebody has disabled direct root access by modifying /etc/profile.
So when you login with root the login is rejected (even from console), but /etc/profile would not be used for su access, so it would work.

You need to amend /etc/profile to have:
if [ $LOGNAME = root ]
then
if [ `tty` != "/dev/console" ]
then
echo "Error: root logins are only allowed on the console."
exit 1
fi
fi
Kapil Jha
Honored Contributor

Re: Hi all

Hello Neel
If your screen just disapper after you log in to root , then chances are that somebody has put exit in .profile file so before coming to prompt you are thwown out of system.
You can check from console and see if some error is coming.
Hope this help !!!!
BR,
Kapil
I am in this small bowl, I wane see the real world......
Neelmani Pandey
Frequent Advisor

Re: Hi all

thanks Kapil u r genius...........

I was expecting this king of answer form u ..

Thansk a lot..