- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Security
- >
- Unable to telnet via root user
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
12-16-2011 07:03 AM
12-16-2011 07:03 AM
Hi There,
I am not able to telent via root user directly, an non-power user is able to telnet from there I can su - in order to get root access.
I am able to access via root from serial console, please note I have installed this server from ignite tape.
Also I have turned off restricted security mode i.e.. tsconvert -r
root user can access from ssh.
Please assist.
Thanks and Regards,
Aamir Majeed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-16-2011 07:29 AM
12-16-2011 07:29 AM
SolutionYou probably have a file called /etc/securetty and the contents of that file is the word 'console'.
# cat /etc/securetty
console
This means that root is ONLY allowed to login directly from the console. Direct root login via telnet from any other device is not permitted. SSH does not query this file. SSH access via root is controlled via the sshd_config file.
If you want to allow root access from devices other than the console, just rename the file to something else, like /etc/securetty.orig.
I would recommend leaving it as is though. It is good security practice to make admins login as themselves and then su to the root user only when necessary.
- Tags:
- securetty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-16-2011 07:38 AM
12-16-2011 07:38 AM
Re: Unable to telnet via root user
Hi Patrick,
Thanks for ur quick response, I also gone through tha file and I hashed out this entry, but that did not work.
In order to adopt changes in /etc/securetty, what steps are required.
Secondly, thanks for ur suggestions regarding root user, but customer is asking to remove this security measure.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-16-2011 07:42 AM
12-16-2011 07:42 AM
Re: Unable to telnet via root user
Try just moving the file. There should be nothing required to activate changes.
# mv /etc/securetty /etc/securetty.BAD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-16-2011 09:16 AM
12-16-2011 09:16 AM
Re: Unable to telnet via root user
A further explanation of the /etc/securetty file:
The contents of the file are the tty's where root is allowed to log into the system. When the system checks the file '/dev/' will be prepended to whatever is in the file. So, if the word 'console' is in the file then the system will interpret that as /dev/console and that is where root is allowed to log in.
If there is anything else there then /dev/ will be prepended to that. So if you have '#console' in the file then the system may see if as '/dev/#console'. Since that does not match any valid device file, root is not allowed to log in.
If there is nothing in the file, then the system may just see it as /dev/ whis not a valid file either, so again root can't log in.
If you do not want any restrictions on where root can log in from, move or remove the /etc/securetty file. If the file does not exist there are not restrictions for the root login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-19-2011 09:35 PM
12-19-2011 09:35 PM
Re: Unable to telnet via root user
Thanks for detailed reply, issue has been resolved by renaming securetty file.
Regards,
AM
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP