Operating System - HP-UX
1834010 Members
2031 Online
110063 Solutions
New Discussion

Direct Root login from tty terminals

 
Amit Manna_6
Regular Advisor

Direct Root login from tty terminals

Hi,

In one of my Hp-Ux boxes which is running HP-UX 11.0.. There is no file /etc/securetty. Still I am not able to login to root directly.

Can anybody tell me the reason for the same.

Thanks and Regards,

Amit Manna
9 REPLIES 9
Joseph Loo
Honored Contributor

Re: Direct Root login from tty terminals

hi,

u mean login as root from the console?

by the way, u have not assign points for some of your earlier post today.

regards.
what you do not see does not mean you should not believe
Amit Manna_6
Regular Advisor

Re: Direct Root login from tty terminals

I mean though there is not /etc/securetty file I am not able to login directly to root from tty terminals.

Can you give me the reason.

Joseph Loo
Honored Contributor

Re: Direct Root login from tty terminals

okay.

how do u login, i.e. telnet, ftp?
anyone set deny/allow access to /var/adm/inetd.sec?
what is the error message, password error?

it is just impossible to rationalise what is happening to the root account without more info.

regards.

what you do not see does not mean you should not believe
Fabio Ettore
Honored Contributor

Re: Direct Root login from tty terminals

Hi Amit,

are you sure to insert the right password for root?
Try to change the root password in single user mode and login again.

HTH.

Best regards,
Ettore

P.S.: ITRC people ask you to assign points because it is important for a future troubleshooting. You think that a your post and resolution can help other people to solve technical problems. According to assigned points they can understand the best answer that helped you to solve problem or just helped you to know better reasons of the problem. For a better knowledge and more I ask you to visit the very good article about Etiquette of ITRC forums provided by Patrick Wallek on the following link (thanks again Patrick for that):

http://66.34.90.71/ITRCForumsEtiquette/after.html

Good enjoy on forum!
Ettore
WISH? IMPROVEMENT!
Amit Manna_6
Regular Advisor

Re: Direct Root login from tty terminals

When I try to root login directly i get the following error.



You may not login directly as this user.
Please login using your own username and use /bin/su.
Hoefnix
Honored Contributor

Re: Direct Root login from tty terminals

Hi,

Because you asked this morning more info on TCB, is this a TCB system?
If so, have a look at the devassign file somewhere in /tcb/.....

HTH,

Peter
Naveej.K.A
Honored Contributor

Re: Direct Root login from tty terminals

hi amit,

check your /etc/profile or in the .profile of the root, whether there is any script written to block the root login from ttys other than the console,

grep -i "You may not login directly as this user" /etc/profile

grep -i "You may not login directly as this user" /.profile

with best wishes
Naveej
practice makes a man perfect!!!
Jan Sladky
Trusted Contributor

Re: Direct Root login from tty terminals

hi Ammit,

please submit points to responses on your questions, you have only 10% submitted ;-)

br Jan
GSM, Intelligent Networks, UNIX
Jan Sladky
Trusted Contributor

Re: Direct Root login from tty terminals

Amit,

1. look at /etc/passwd if there is shell
defined for root:
root:/awC8T4Joq7io:0:3::/root:/sbin/sh
2.check /root/.profile for some bugs
3.check /etc/hosts/allow, denny
4.is root's passwd correct ? for certainty change it in single user mode: in ISL mode type
hpux -is

br Jan
GSM, Intelligent Networks, UNIX