- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Wrong username displayed for root when su'ed in.
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
06-29-2001 08:32 AM
06-29-2001 08:32 AM
220 hpcc929 FTP server (HP ASL ftpd, version(301)) ready.
Name (us-support.external.hp.com:dchou):
Similarly, if I send out e-mail's when su'ed into root, the receiver sees that e-mail as having been sent by "dchou". I found one reference to what I think may be the same issue, but there was no resolution.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x011072106351d5118fef0090279cd0f9,00.html
I logged directly into the console as root and the system does NOT exhibit this behavior, so I'm thinking that the su command is doing something funky.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 08:38 AM
06-29-2001 08:38 AM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 08:52 AM
06-29-2001 08:52 AM
Re: Wrong username displayed for root when su'ed in.
as E-Mail and ftp to HP have to do with internet....
How does it behave on internal connections ?
Could it be that you have this only with outbound traffic, which runs through a proxy ?
Public ftp servers often expect you to login with your e-mail address. The proposal is made by a reverse auth-request or something like this.
Since it is doing an active connection (on seperate selfmade connection) the proxy is rarely able to reverse this request to the oringinator. But for root it has a match on its own box. Check out /etc/passwd on your proxy. I am curious, if you find your userid there...
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 09:14 AM
06-29-2001 09:14 AM
Re: Wrong username displayed for root when su'ed in.
...and no proxy servers involved anywhere. Ftp always shows the username as "dchou" when su'ed into the root account, regardless of where the ftp server is located.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:01 PM
06-29-2001 12:01 PM
Re: Wrong username displayed for root when su'ed in.
I think the troulbe you have may be related to your UID in the /etc/passwd file. I would check the passwd file and look at your id and the other id and see if they have the same UID value. I bet they do and I bet the other ID comes first in the passwd file.
If you are using NIS or NIS+ check their passwd maps as well for a UID problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:21 PM
06-29-2001 12:21 PM
Re: Wrong username displayed for root when su'ed in.
Commands like who, id, and ls -l report information correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:26 PM
06-29-2001 12:26 PM
Re: Wrong username displayed for root when su'ed in.
Here is mine from my 10.20 machine:
-r-sr-xr-x 1 root bin 20480 Feb 20 1998 /usr/bin/su
And here from an 11.0 machine:
-r-sr-xr-x 1 root bin 24576 Aug 6 1998 /usr/bin/su
The ownership or permissions of su haven't been changed hve they?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:38 PM
06-29-2001 12:38 PM
Re: Wrong username displayed for root when su'ed in.
-r-sr-xr-x 1 root bin 24576 Aug 6 1998 /usr/bin/su
# what `whence su`
/usr/bin/su:
$Revision: 82.15.1.1 $
PATCH_11_00: su.o 98/08/06
I also compared this to other 11.0 systems where things aren't acting strangely, and the su binary is identical on those machines. I've even replaced the binary with a copy from another box, and I still get the same behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:42 PM
06-29-2001 12:42 PM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 12:45 PM
06-29-2001 12:45 PM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2001 11:31 PM
07-01-2001 11:31 PM
Re: Wrong username displayed for root when su'ed in.
another shot:
Does sendmail.cf contain "dchou" at any place ?
Does a .netrc file exist in / (ftp) ?
Any other /. files that may affect mail for root ?
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 03:02 AM
07-02-2001 03:02 AM
Re: Wrong username displayed for root when su'ed in.
Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 04:58 AM
07-02-2001 04:58 AM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 05:20 AM
07-02-2001 05:20 AM
Re: Wrong username displayed for root when su'ed in.
It could be that your /var/adm/utmp & wtmp files are corrupt.
Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 10:09 AM
07-02-2001 10:09 AM
Re: Wrong username displayed for root when su'ed in.
# cat /etc/mail/sendmail.cf | grep dchou
#
Additionally, no .netrc file or any other file which could cause such an effect.
Robin----
# who am i
jdonovan pts/1 Jun 29 12:17
Again, commands like this correctly show who is logged in. It is ONLY when I use su to login to root that this behavior occurs.
I've tried recreating the /etc/utmp file, but that had no effect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 10:43 AM
07-02-2001 10:43 AM
Re: Wrong username displayed for root when su'ed in.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 12:21 PM
07-02-2001 12:21 PM
Re: Wrong username displayed for root when su'ed in.
I create a user called "temp", then used su to connect to it from my jdonovan account. It exhibited the same behavior with ftp as when I su to root.
$ who am i
jdonovan pts/1 Jul 2 11:16
$ id
uid=3103(temp) gid=20(users)
$ ftp firebird
Connected to firebird.playstation.sony.com.
220 firebird FTP server (Version wu-2.6.0(2) Wed Dec 15 15:42:55 GMT 1999) ready
.
Name (firebird:dchou):
Also, logging in directly as the user temp and using su to switch to root, I see the expected behavior!
# who am i
temp pts/2 Jul 2 13:27
# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7
(lp),20(users)
# ftp firebird
Connected to firebird.playstation.sony.com.
220 firebird FTP server (Version wu-2.6.0(2) Wed Dec 15 15:42:55 GMT 1999) ready
.
Name (firebird:root):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 11:37 PM
07-02-2001 11:37 PM
Re: Wrong username displayed for root when su'ed in.
this looks very strange indeed.
My HP-UX 11.00 system behaves just the other way round (suggesting the who-user, not the id-user):
# who am i
root pts/ta Jul 3 09:23
# id
uid=3200(sqde30) gid=101(sapsys) groups=200(dba)
# ftp wowsol01
Connected to wowsol01.
220 wowsol01 FTP server (SunOS 5.7) ready.
Name (wowsol01:root):
Did you check "which ftp" in "login" and "su -" session ? I assumed, that this should be the same, but I just reread "man su" and was wrong. While "login" starts to execute profiles with an empty "PATH", "su -" already has "/usr/bin" set (there is an ftp in /usr/bin). So if your profiles go like
PATH=$PATH:....
something might be diffrent !
[ I do not think this one will score, but what will you do other than speculate on this ]
Good hunting
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 01:25 AM
07-03-2001 01:25 AM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 01:39 AM
07-03-2001 01:39 AM
Re: Wrong username displayed for root when su'ed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 07:08 AM
07-03-2001 07:08 AM
SolutionOne other question before I decide that for sure though... How are you logging into the system? If you're rsh/remsh-ing in and running an xterm/dtterm without the -l flag, your session may not be getting logged in utmp/wtmp.