- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disable remote root login
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 01:49 PM
тАО11-15-2004 01:49 PM
Disable remote root login
I want to disable remote root login on HPUX 11i hosts. (only allow users login remotely as a normal user then su to root). I have created /etc/securetty file with the content "console". However, I can still remotely login as root through ssh2.
Is ssh handled differently or do I need to reboot after creating /etc/securetty file?
Thanks in advance.
Peng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 01:54 PM
тАО11-15-2004 01:54 PM
Re: Disable remote root login
sshdPermitRootLogin no
NOTE: This should be mandatory on *ANY* system facing the open Internet. Over the last few months, many, many scripted attacks for ssh have been seen and root is one of several common logins being tested by hackers.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 01:57 PM
тАО11-15-2004 01:57 PM
Re: Disable remote root login
UsePAM yes
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 02:15 PM
тАО11-15-2004 02:15 PM
Re: Disable remote root login
swlist shows my ssh is the following version:
"Secure_Shell A.03.71.000 HP-UX Secure Shell". And in "/opt/ssh/etc/sshd_config" file, "UsePAM" is set to "yes".
Am I looking into the wrong file?
Peng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 02:22 PM
тАО11-15-2004 02:22 PM
Re: Disable remote root login
PermitRootLogin no
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 02:42 PM
тАО11-15-2004 02:42 PM
Re: Disable remote root login
I set "PermitRootLogin" to "no" and did a "kill -SIGHUP
password for root@
password for root@
password for root@
password for root@
password for root@
password for root@
password for root@
Disconnected; protocol error (Too many authentication failures for root).
As you can see, after 7 tries, it finally kicked me off.
Is this the way supposed to be?
Thanks,
Peng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 04:31 PM
тАО11-15-2004 04:31 PM
Re: Disable remote root login
Hi
#echo console > /etc/securettys
#chmod 0744 /etc/securettys
no need to reboot after creating /etc/securettys file
ssh is given for security, it wouldn't allow direct root login even though /etc/securettys is not exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 04:51 PM
тАО11-15-2004 04:51 PM
Re: Disable remote root login
I've already done what you said. See my previous messages.
BTW, ssh does allow you login as root if you don't change configuration.
Thanks anyway.
Peng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 11:31 PM
тАО11-15-2004 11:31 PM
Re: Disable remote root login
1. Provide the reason for authentication failure such as "root login is not allowed"
2. Use the same generic response for all authentication failures such as another request for the password.
In case #1, the sysadmin will know the reason without looking in syslog, but at the same time, provide the hacker with too many details. In case #2, the actual failure (root not allowed, username does not exist, password incorrect, etc) is not given, thus keeping the real reason away from the unauthenticated user. Most security people will choose less information for login attempts. Even Unix will not report whether you failed to type the username or failed to type the correct password, just "Login incorrect"
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 10:24 AM
тАО11-17-2004 10:24 AM
Re: Disable remote root login
Looking into sshd_config file, I couldn't find "PasswordGuess" parameter though. Is this something by default no there?
Peng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 01:43 PM
тАО11-17-2004 01:43 PM
Re: Disable remote root login
Bill Hassell, sysadmin