- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- su root fails whilst telnet and rlogin is OK
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
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
тАО04-28-2011 01:09 AM
тАО04-28-2011 01:09 AM
su root fails whilst telnet and rlogin is OK
The puzzling thing is that I took delivery of a bunch of rx2660s running HP-UX 11.31 (September 2010) last year and they are all fine I can do a su root like I've always been able to.
BTW, I don't know why, but a suspect the following may be relevent - my password is 21 characters long and contains an "@" character
Thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 01:55 AM
тАО04-28-2011 01:55 AM
Re: su root fails whilst telnet and rlogin is OK
Run "stty -a". If you see "kill = @", this is your problem. To fix it, assign some other character as the kill character in your login scripts: for example, "stty kill ^U" assigns Control-U as the kill character.
If your password was set when the system was in traditional mode (as opposed to shadow passwords or Trusted System Mode), the system has stored only the first 8 characters of your password. In traditional mode, the password is truncated to 8 characters when checking, so longer passwords will "just work".
When the system is converted to Trusted System Mode or to shadow passwords, it becomes capable of storing longer passwords, so passwords will no longer be truncated to 8 characters - but the existing passwords have still only 8 characters stored.
Try typing only the first 8 characters of the root password to the su prompt: if that works, use "passwd" to reset the root password, so the system can replace the truncated version of the stored password with a full-length version.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 04:24 AM
тАО04-28-2011 04:24 AM
Re: su root fails whilst telnet and rlogin is OK
I don't think the kill charcter is the problem as they are all set to ^U.
Also, I hadn't realised, but whilst 'rlogin
Please note in the attached table, all of the rlogins start from a fourth HP-UX (11.11) box.
Any more ideas as to why this problem is occuring?
Many thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 05:34 AM
тАО04-28-2011 05:34 AM
Re: su root fails whilst telnet and rlogin is OK
I didn't want to change the root password on this machine as I use the same root password on several different machines.
Anyhow, just to test if the "@" character has anything to do with the problem, I changed the root password so that it didn't have the "@" character in it. Lo-and-behold 'su root' worked.
Not wanting different passwords on the various machines, I changed the password back to the original one with the "@" in, i.e. the one that seemed to be causing the problem.
Surprisingly, I can still do a 'su root' without any problems, but the 'rlogin
My guess is that the stty kill=@ may have caused a problem when I was first setting up the machine and this carried forward.
My original gripe now seems to be resolved, but I'd still be quite interested to know why 'rlogin
Thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 06:08 AM
тАО04-28-2011 06:08 AM
Re: su root fails whilst telnet and rlogin is OK
Attaching a Microsoft Word document instead
of plain text may not be the best way to
maximize your audience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 12:44 PM
тАО04-29-2011 12:44 PM
Re: su root fails whilst telnet and rlogin is OK
What happens when you log in at the console?
It's possible that the password setup was in some kind of default stty mode, where @ would be the kill.
Then when you enter the password to set it up as
abc@123
then it really sets it to the 123 only.
'su' will be run, as you noted, with ^U as kill, so when you enter abc@123 it sees abc@123 and does not match 123.
Try using 'su' using only the chars after the @ in your password.
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 02:26 PM
тАО04-29-2011 02:26 PM
Re: su root fails whilst telnet and rlogin is OK
Have you configured extra security to disallow root login except for the console?
Or to allow su to root for certain groups?
You could use "\" to escape the "@".