tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Last login info on finger user output (du40e)
@ 1999-04-30 19:07 Psarras Nikos
  0 siblings, 0 replies; only message in thread
From: Psarras Nikos @ 1999-04-30 19:07 UTC (permalink / raw)
  To: tru64-unix-managers

hi again,

i got no replies for this. I think its my mistake that i did not include
the version of Os. So i will try once again

We have an alpha 3000/m400 with Digital Unix 40.e running on it and the 
patch kit 01 installed.
 
i am running finger xxxx and that is what i am getting:

Login name: xxxx                        In real life: Fred Flintone
Directory: /users/cartoons/xxxx         Shell: /bin/csh
Last login Tue Apr 27 18:46 on ttyp1 from ppp34-cartons.ya'
No Plan.

i can not see the hole fully qualified name of the host that opens the
connection. When a FQN does not exists and only the ip address is shown
there is no problem.

So i am looking for the fixed length of the array of chars in lastlog.h
because finger reads /var/adm/lastlog:

#define LL_LINELEN      8               /* terminal path length */
#define LL_HOSTLEN      16              /* hostname length */
struct lastlog {
        time_t  ll_time;
        char    ll_line[LL_LINELEN];
        char    ll_host[LL_HOSTLEN];            /* same as in utmp */
};

So the length is 16 and it can not represent the full name (why?). But 
the frace "/*same as in utmp */" above and the contents of utmp.h makes
me wonder.

utmp.h

struct utmp {
        ....
        ....
        char    ut_host[64];     /* host name same as MAXHOSTNAMELEN */
};

what is happening? Is this ok? 
Is there a way to see the FQN in last login information using finger?

take care
Thanks for listening
salaGatoR

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-04-30 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-30 19:07 Last login info on finger user output (du40e) Psarras Nikos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox