- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Odd sudo behavior when logging via GSP console ove...
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
08-12-2005 07:26 AM
08-12-2005 07:26 AM
I just noticed something very odd. When I connect to the GSP, log in at the console as myself (not root), then issue my 'sudo sh' to get a root shell, my password is NOT accepted! I just typed it in order to log in!?
If I connect direct over the network (SSH), all works as expected.
SUDO version is 1.6.8p9.
Anyone else seen this one? I saw one other thread here in the forums by someone with perhaps the same issue... no joy.
Any help/pointers/insight is appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 07:45 AM
08-12-2005 07:45 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
The Guardian Service Processor does not recognize the OS commands.
Any login to the GSP has the full system priviledges. Again, this is separate from the OS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 07:46 AM
08-12-2005 07:46 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
Not necessarily with sudo but I have seen weird things happen when you login from a strange terminal while the system thinks you are using something else.
My 2 cents.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 07:55 AM
08-12-2005 07:55 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
I connect to the GSP, "CO" to the console of my choice, log in to the system on that partition, then issue the sudo command. I'm not trying to do this at the GSP prompts.
TERM type shows as xterm when logging in over network, but vt100 when at the console (environment variable TERM).
I do notice that prior to the "incorrect password" message from sudo, there is a bit of a pause (1/2 second?) prior to the message, whereas when logging in over the network (and deliberately mistyping my password) the error message comes up almost instantly...
Mystery to me...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 08:23 AM
08-12-2005 08:23 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
I know, sudo is checking $TERM, but I don't know what this is causing.
Try to set your TERM var before issuing sudo.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 08:30 AM
08-12-2005 08:30 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
If the conversion is symmetric (for example, when you press "{" the keypress gets translated to "[" on the way to the server, and the "[" output by the server gets translated back to "{" on the way to your screen) it can't be detected by just typing away and checking what's displayed.
Try this: when using the GSP connection, write all the "special" characters of your password (anything that is not a number nor a US-ASCII letter) into a file on the server. Let's call that "file1". Disconnect and do the same over SSH, creating "file2". Try to make it identical to the first file.
Now compare the files, both by eye and using a server-side tool (like "diff"). Do the files look identical? Does "diff" agree?
Another thing, which may or may not be relevant: when logging as non-root over the GSP, I sometimes seem to get the TERM environment variable set as "dumb". This might cause strange behaviour: check the variable and set it to proper value if necessary before using sudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 12:06 PM
08-12-2005 12:06 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
and that makes me root
try his instead of sudo sh
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 03:28 PM
08-12-2005 03:28 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
grep console /etc/inittab
when on the Console or GSP type: $ stty
when on a telnet to your Public IP type: $ stty
any difference ?
Does the Private vs the Public have any TERMIO(7) differences ?
just wondering. pls report to the Forum, thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 08:10 PM
08-12-2005 08:10 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 10:24 PM
08-12-2005 10:24 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
I did retype my password into a text file on both sessions to make sure that a character wasn't getting translated or dropped. They are identical.
Regarding the stty -a output diffs:
The only differences:
Console - 0 rows, 0 columns.
Public - 43 rows, 102 columns (putty screen size)
Console - eol2 = ^@, swtch = ^@
Public - both are
All other signal defs are the same. No characters in my password appear.
More data: It's not just me - but my other 2 admins have the same issue. Persists across hardware platforms (meaning the GSP for the SuperDomes, 8400's, 7410's... all exhibit the behavior).
Thanks to all again for helping out...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 03:10 AM
08-13-2005 03:10 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
Does your passwords include some special characters like *,#,@ etc. This can also be caused by this.
From "man passwd"
======================================
WARNINGS
Avoid password characters which have special meaning to the tty driver, such as # (erase) and @ (kill). You may not be able to login with these characters.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 07:05 AM
08-13-2005 07:05 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 01:21 AM
08-15-2005 01:21 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 02:25 AM
08-15-2005 02:25 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 02:30 AM
08-15-2005 02:30 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 02:59 AM
08-15-2005 02:59 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
Unfortunately my support case was closed citing the "OSS iExpress components are not supported by HP".
Anyone else have any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 11:55 AM
08-15-2005 11:55 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
Does direct su to root (from console) work ok?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 11:12 PM
08-15-2005 11:12 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
Next step is to haul to the data center and directly plug into the console port and see what happens. Bizarre.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 12:28 PM
08-16-2005 12:28 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
$ sudo -S sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 12:59 PM
08-16-2005 12:59 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
Tried it two ways with -S option - still no go. I typed it in when I was prompted, and then tried the "echo {pw} | sudo -S sh". Ugh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:29 PM
08-16-2005 01:29 PM
Solutionhttp://www.courtesan.com/bugzilla/show_bug.cgi?id=187
Is your sudo compiled with --with-pam? If so, try compiling without PAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 09:07 PM
08-16-2005 09:07 PM
Re: Odd sudo behavior when logging via GSP console over LAN.
Great find!!! I'll try that today and see what happens. Thanks for the link!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 03:09 AM
08-17-2005 03:09 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
Just a note on compiling sudo w/o PAM
If you do this and you are running the LDAP client as well you'll break LDAP. It needs sudo with the PAM option compiled in.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 03:12 AM
08-17-2005 03:12 AM
Re: Odd sudo behavior when logging via GSP console over LAN.
I appreciate all the input! Great forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 02:16 AM
08-19-2005 02:16 AM