- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: prevent telnet access to root
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
Forums
Discussions
Discussions
Discussions
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
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
12-16-2004 07:40 AM
12-16-2004 07:40 AM
prevent telnet access to root
problem- the security scans keep locking the root account.
we can't disable telnet - it's needed to support legacy clients.
/etc/securetty prevents root telnet logins. however it doesn't prevent bad password checks which when repeated often enough will lock the root account.
this problem does not happen w/ ssh ("PermitRootLogin no" in sshd.conf).
using modprpw I could set umaxlntr to a larger value but I'd prefer root logins be aborted before a bad password locks the account.
fortunately I have a script that will alert me if root is locked but I'd rather not have to unlock all the root accounts on servers after the scans.
Thanks,
Chuck Davis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 07:49 AM
12-16-2004 07:49 AM
Re: prevent telnet access to root
Even if the root account gets locked in this manner, you can still login as root from the console. Can't you ?.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 07:52 AM
12-16-2004 07:52 AM
Re: prevent telnet access to root
One idea is that if you know when you are running your security scans and that it will lock the root account, you could plant an 'at' job to unlock the root account shortly after the security scan finishes.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 07:59 AM
12-16-2004 07:59 AM
Re: prevent telnet access to root
John - good thought. I get an email whenever it locks (checking the alock value from getprpw) and could easily modify to unlock. However, it would be nice if the login program would check the user and securetty before checking the password and locking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 08:04 AM
12-16-2004 08:04 AM
Re: prevent telnet access to root
It is further possible to force root login from another user using the su - root command.
as root
echo "console" > /etc/securetty
You can disable telnet access from certain hosts such as your securty probe machine in /var/adm/inetd.sec
telnet deny 10.1.*
Then just inetd -c to apply he changes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 08:26 AM
12-16-2004 08:26 AM
Re: prevent telnet access to root
and yes it is good that su is not affected by alock value.
the securetty is already established.
the inetd.sec (as well as hosts.deny) trick, well the security folks are already wise to that one and will use an arbitrary ip address from which to conduct scans.
at this point I think I'll have to live w/ the annoyance of locked roots after scans. no big deal really but I didn't like to have to unlock just so my ssh logins would work. It seems that the login program should check for securetty >before< checking the password. this would prevent someone from sending the real password in cleartext if they acccidentally tried to telnet or ftp.
Thanks for the speedy input folks!