- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Who output giving me ????
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
04-23-2001 12:21 PM
04-23-2001 12:21 PM
Who output giving me ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2001 11:15 PM
04-23-2001 11:15 PM
Re: Who output giving me ????
if you check your variables with cmd: "set"
what output do you get by "LOGNAME" ?
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2001 11:50 PM
04-23-2001 11:50 PM
Re: Who output giving me ????
# logname
and
# id
The variable LOGNAME would give the current uid you are using, whereas who(1) displays probably the login name returned by getlogin(3C). These are different when you ran su(1) after login.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 12:47 AM
04-24-2001 12:47 AM
Re: Who output giving me ????
We once had weird usernames added to our system by mistake (bad scripting!!)
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 01:08 AM
04-24-2001 01:08 AM
Re: Who output giving me ????
The problem with the "who -u" command results from not recording login information in the /var/adm/wtmp file.
Hummingbird Exceed's "xstart" command is connecting to the HP-UX system using "rexec" by default, and not "telnet" or "rlogin", for "Start Method". This does not update /var/adm/wtmp.
To get the file /var/adm/wtmp updated use "rlogin (TCP/IP)" or "telnet (TCP/IP)" as "Start Method" in the "xtart" utility.
The "rexec" command (commonly referred-to as remsh on Unix Systems) is intended to run commands on a remote machine, and communicates with the rexecd on that machine to do so.
Since these accesses are not usually considered logins, they are not logged to /var/adm/wtmp. However, the typical semantics for this command are such that if no command line is explicitly given, remshd will instead perform the task of rlogind to generate a login shell. The rlogind-based login will produce a entry in the file /var/adm/wtmp.
So, "rexec ux_server sh" will produce no /var/adm/wtmp entry, but "rexec ux_server" will produce a login and appropriate entries in the file /var/adm/wtmp. This behavior is the same as it was on 9.X, and can be shown using UX-to-UX usage of "rexec" or "remsh", followed by examining the wtmp file using /usr/lib/acct/fwtmp (9.x) or /usr/sbin/fwmp (10.x).
So, the contents of /var/adm/wtmp depend on exactly what Hummingbird Exceed's xstart command is exec'ing.
I suspect the case is true of most other X emulators I know reflections X works the same and the problem is no doubt the same at hpux 11.xx ?
Is this your scenario/problem ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 07:16 AM
04-24-2001 07:16 AM
Re: Who output giving me ????
To follow up on Alex's comments. The 11.0 r-commands patch PHCO_17030 introduced this bug fix:
3. JAGab21128: remshd and rexecd are not updating the "/var/adm/wtmp" and "/var/adm/btmp" files.
The latest version of the 11.0 r-commands patch is now PHNE_21731.
Hope this helps,
-> Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2001 05:03 AM
04-25-2001 05:03 AM
Re: Who output giving me ????
'logname' returns ????. 'id' returns the correct uid/gid and all that.
I'll try to track down where the logname environment variable got set incorrectly, but as always, any thoughts/ideas will be much appreciated.