1753977 Members
7713 Online
108811 Solutions
New Discussion юеВ

Securetty

 
John Hegedus
Occasional Advisor

Securetty

I have an rp7440 running hpux 11.11. I set securetty to only allow console login access. However, anyone who ssh into the machine can logon as root with the correct passwd... I want to disable root from logging directly in... How can I do this??
5 REPLIES 5
Court Campbell
Honored Contributor

Re: Securetty

in your sshd_config
uncoomment and change:

#PermitRootLogin yes

to

PermitRootLogin no

then restart sshd.

should be

# /sbin/init.d/secsh stop
# /sbin/init.d/secsh start
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Dan Wanek
Valued Contributor

Re: Securetty

This should probably be in the HP-UX forum, but here is what you do.

1) Make sure in your sshd_config you have the line:
PermitRootLogin no

2) Restart sshd
Court Campbell
Honored Contributor

Re: Securetty

Also not sure what version you are running but there is another directive EnforceSecureTTY. More info on this page:

http://www.docs.hp.com/en/5991-7493/ch04s07.html#enforcesecuretty
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
John Hegedus
Occasional Advisor

Re: Securetty

Yes What I forgot to do was stop and restart the daemon..
It works fine now Thank you
John Hegedus
Occasional Advisor

Re: Securetty

Thanks needed to stop and start daemon