Operating System - HP-UX
1753418 Members
5027 Online
108793 Solutions
New Discussion юеВ

root can't login from tty but yes from console

 
SOLVED
Go to solution
Manuales
Super Advisor

root can't login from tty but yes from console


root can't login from tty but yes from console
What do I have to do in order I can login as root from telnet session?

thansk in advance.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: root can't login from tty but yes from console

Hi Manuales:

You appear to have an '/etc/securetty' file. This file, if present, lists the valid 'tty' devices for a root login. If you don't want to restrict root's login to the console, remove this file or add the 'tty' devices you need to it --- one device per line, like:

console
tty01
tty02

Regards!

...JRF...

Manuales
Super Advisor

Re: root can't login from tty but yes from console

thanks..... yes my system has that file ..
but .. how can i know what device i have to put there ? i do not know what tty will use root when it loggins
James R. Ferguson
Acclaimed Contributor

Re: root can't login from tty but yes from console

Hi (again) Manuales:

> how can i know what device i have to put there ? i do not know what tty will use root when it loggins

In this case you may want to remove the 'securetty' file entirely, thus allowing root logins from anywhere.

Regards!

...JRF...

Manuales
Super Advisor

Re: root can't login from tty but yes from console

YES, I did and it worked ... thank you so much ..... :)
Manuales
Super Advisor

Re: root can't login from tty but yes from console

THANK YOU SO MUCH