- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root password question
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-18-2002 06:32 AM
12-18-2002 06:32 AM
Here's an odd situation. We changed the root password a couple days ago and it was working fine until we rebooted the machine this morning. After the reboot we could not log onto the console or from any terminal emulators using the new or old root password. I thought I was going to have to pull out the single user move. HOWEVER, I could log in using my normal user name and then su - out to root using the new password! What?! I have now changed the password to something totally different and can log in fine as root. I will also say that the password we chose a couple of days ago did contain an @ symbol which I read on the forums can cause an issue. Can anyone confirm that? Any guesses as to why I couldn't log in as root but could su - to root? Any guesses as to whether or not it will happen the next time I reboot? It isn't a major deal, but I certainly am curious!
Thank you all for your time,
Jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:39 AM
12-18-2002 06:39 AM
SolutionGood luck
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:40 AM
12-18-2002 06:40 AM
Re: root password question
I tried in my systems with a password containing a @ symbol but it seems to work... you say you cannot login from console also as root?...
cheers
george
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:40 AM
12-18-2002 06:40 AM
Re: root password question
Check to see if you have an /etc/securetty file on your system. If so, root can only login at the tty's listed in that file. Many people will use that file to limit root logins to just the console by putting the entry "console" in the /etc/securetty file. Maybe you have the file with no entries in it?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:41 AM
12-18-2002 06:41 AM
Re: root password question
Your theory shows that your system is trusted. check for passwd expiry days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:43 AM
12-18-2002 06:43 AM
Re: root password question
I would recommend AGAINST using ANY special characters in the root password, just in case! Keep it simple, use only a-z and 0-9.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:45 AM
12-18-2002 06:45 AM
Re: root password question
1. you never logon from the console
2. @ symbol is the 9th or greater character
Rather than try to remember the above rules, I find it easier to pick another character to use.
Good luck,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 06:49 AM
12-18-2002 06:49 AM
Re: root password question
Just to clarify in case someone else runs across this string - the new password worked fine from everywhere (console and terminal emulators) before the reboot. As soon as we rebooted we were only able to log in as root by logging in as a normal user and then su - 'ing into root. Just to be on the safe side the newest password does not contain an @ symbol nor will any future passwords! However the real test will be conducted upon the next reboot of the system.
Thanks again,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 07:36 AM
12-18-2002 07:36 AM
Re: root password question
I have added the following in a boot up script under /sbin/init.d that will turn ^H and ^U to be backspace and cancel (kill) line. This then allows "@" or "#" to be in the password.
stty erase '^H' kill '^U' intr '^C' susp '^Z'
This sets the default globally for all terminals. Even during the login process.
See man stty for more info.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 07:42 AM
12-18-2002 07:42 AM
Re: root password question
The reboot resets the default cancel line and backspace characters to "@" and "#". Putting the "stty" command in the boot up sequence will make sure it gets reset on each reboot.
-- Rod Hills