- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Allow login from Console only
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
01-25-2001 08:33 AM
01-25-2001 08:33 AM
Allow login from Console only
I followed the following instruction:
# echo console >> /etc/securetty
# chmod 600 /etc/securetty
I couldn't telnet as root but could login as a normal user and "su" as root, however, I am still able to login as root from other terminal. What can I do to disable this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 08:36 AM
01-25-2001 08:36 AM
Re: Allow login from Console only
-r-sr-xr-x 1 root sys 8 Mar 11 1996 /etc/securetty
I don't know if this will make a difference or not, but it's worth a shot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 08:38 AM
01-25-2001 08:38 AM
Re: Allow login from Console only
Make sure your /etc/securetty has one single line.
# echo console > /etc/securetty
# chown root:sys /etc/securetty
# chmod 644 /etc/securetty
This should prevent root logins from all terminals but the system console
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 09:41 AM
01-25-2001 09:41 AM
Re: Allow login from Console only
I don't really understand the permissions of your /etc/securetty file.
It shouldn't be marked for execution and surely not SUID....
On all servers we have here it's set to
-rw-r--r-- root sys ........
All the best,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 11:11 AM
01-25-2001 11:11 AM
Re: Allow login from Console only
# ll /etc/securetty
-r-Sr-xr-x 1 root sys 8 Jan 25 10:49 /etc/securetty
# cat /etc/securetty
console
# chmod 644 /etc/securetty
# ll /etc/securetty
-rw-r--r-- 1 root sys 8 Jan 25 10:49 /etc/securetty
login and out again, I still can login as root.
I wonder if there is something to do with the dtterm! It seems that the file is not being read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 10:25 PM
01-25-2001 10:25 PM
Re: Allow login from Console only
Are you using OpenSSH ?
In that case, set "PermitRootLogin no" in your sshd_config file and restart the SSH daemon.
Best regards,
Dan