"who am i" on x86 vs Sparc Solaris 2.4

"who am i" on x86 vs Sparc Solaris 2.4

Post by Mike Batchel » Tue, 27 Jun 1995 04:00:00



On Solaris x86 2.4, the "who am i" command does not print out as the last
field, the system from which a user has logged in from over the network.
SPARC Solaris 2.4 does, however.  "who" alone on x86 and SPARC does print
out the remote host, though.

x86 2.4:
babylon5:~:$ who
mikebat    console      Jun 13 17:00
mikebat    pts/2        Jun 20 11:21
mikebat    pts/3        Jun 20 11:21
mikebat    pts/4        Jun 20 11:22
mikebat    pts/5        Jun 26 16:22    (ivanova.NAI-Sys.COM)
babylon5:~:$ who am i
mikebat    pts/5        Jun 20 11:20

SPARC 2.4:
ivanova:~:$ who
root       console      Jun 19 13:59
mikebat    pts/0        Jun 26 16:03    (babylon5.NAI-Sys.COM)
ivanova:~:$ who am i
mikebat    pts/0        Jun 26 16:03    (babylon5.NAI-Sys.COM)

What gives?  How can this be corrected?  I need consistent behavior on
both platforms, unless someone can point out some other way a login script
can determine which system I logged in from.
--

  ClarkNet censors the newsfeed, so I am looking for a new Internet provider
   local to Annapolis, Maryland.  Dialup PPP service and custom domain name
    desired, with possible future ISDN.  Responses to this mailbox, please.

 
 
 

"who am i" on x86 vs Sparc Solaris 2.4

Post by David Robins » Wed, 28 Jun 1995 04:00:00



>On Solaris x86 2.4, the "who am i" command does not print out as the last
>field, the system from which a user has logged in from over the network.
>SPARC Solaris 2.4 does, however.  "who" alone on x86 and SPARC does print
>out the remote host, though.
>What gives?  How can this be corrected?  I need consistent behavior on
>both platforms, unless someone can point out some other way a login script
>can determine which system I logged in from.

There is a bug in who where it does not correctly ignore "dead" utmp
entries. Try doing a "who -a" and see if there is a correct entry
with the host field.

Looks like it is fixed in 2.5.

        -David

 
 
 

1. strange output of "who am I" & "last" on solaris 9

OS:
%  uname -a
SunOS sunbox-1 5.9 Generic_117171-09 sun4u sparc SUNW,Ultra-2
ssh on Solaris 9 comes with the OS.

When I tried to "ssh" from another machine (Soalris 7 + OpenSSH)
to it, the output of "who am i" and "lst" is strange, the IP address
part is weird.

%  who am i
tom       pts/3        Oct  8 13:54    (t?)

%  last |more
tom   pts/3        t?             Fri Oct  8 13:54   still logged in

When I tried to ssh from another Solaris 9 (ssh comes with OS),
the IP address part is missing in the output of "who am i" and "last":
%  who am i
tom       pts/1        Oct  8 14:00

%  last |more
tom      pts/1                         Fri Oct  8 14:00   still logged in

Any idea?

Thanks.

2. hdparm losing settings on both IDE drives?

3. strange output of "who am i" & "last" in Solaris 9

4. Resetting Date from DST

5. Evaluation pointers: x86-Solaris vs x86-NT vs SPARC-Solaris

6. coda??

7. Benchmarks x86 Solaris vs Linux and Solaris 2.6 x86 vs sparc

8. Symbol troubles in 2.4.18pre... kernels

9. Performance of Solaris 2.4 on x86 vs SPARC

10. Solaris 2.4 X86 vs Sparc

11. PPP on Solaris 2.4 for Sparc, Matrox PCI Millenium Card under Solaris 2.5 x86

12. moving from SPARC solaris 2.3 to x86 solaris 2.4

13. "ytalk" in Solaris 2.4 (SPARC)