Operating System - HP-UX
1847208 Members
2605 Online
110263 Solutions
New Discussion

Re: /etc/securetty doesn't work

 
Robin King_1
Regular Advisor

/etc/securetty doesn't work

I've created the /etc/securetty file on an HP-UX 11.11 box, and it doesn't seem to work. I can log in as root from my workstation. Can anyone suggest why?

# ls -l secure*
-r--r----- 1 root sys 8 Oct 8 14:34 securetty
# cat securetty
console
5 REPLIES 5
Robin King_1
Regular Advisor

Re: /etc/securetty doesn't work

Sorry ignore me. I;ve now just tryed it from a different interface and realised I was logging in using ssh.

Can't you delete posts any more?
Chris Wilshaw
Honored Contributor

Re: /etc/securetty doesn't work

I guess that you're doing an rlogin - this will not be blocked by securetty.
T G Manikandan
Honored Contributor

Re: /etc/securetty doesn't work

It should look like this
# touch /etc/securetty
#chown root:bin /etc/securetty
# chmod 600 /etc/securetty
Zeev Schultz
Honored Contributor

Re: /etc/securetty doesn't work

Sure it will work with rlogin and any other method that receives tty (pseudo terminal) window after login has been established. There were some issues with rexec though. As to ssh, it authorize the host first (before any session is established),later chooses the method for user authorization (public key,pam, etc). So if user A has a public key for server B on workstation A he will be allowed to log in securely to B without checking usual unix user/password. My guess is that ssh bypasses /etc/securetty. ssh has an option in sshd_conf
that disables root logins - PermitRootLogin , set it to "no".

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Harstad
Advisor

Re: /etc/securetty doesn't work

Hi

Are you sure that you are not using ssh??