[comp.unix.aux] An odd

whitney@think.COM (David Whitney) (06/11/88)

This has to do with 'finger', 'logout', and possibly something else. When I
finger a user who I know has logged in (namely, myself), it prints out all
the info and then "Never logged in". It does this when I finger anybody not
logged in. login also does not say "Last login :<date/time>"

I checked the man pages for finger, and in the "see also" section, it mentions
the file (or directory) /usr/adm/lastlog. I figure it's a dir, so I created
a dir by that name. Still, "Never logged in". Any ideas?

David Whitney, MIT '90                     Still learning about my Apple //GS
{the known universe}!ihnp4!think!whitney   and all of its secrets. Any and all
whitney@think.com                          technical info appreciated.
DISCLAIMER: If they only knew what I was doing and saying here...

spike@bu-cs.BU.EDU (Spike) (06/12/88)

In article <21818@think.UUCP> whitney@think.UUCP (David Whitney) writes:
<I checked the man pages for finger, and in the "see also" section, it mentions
<the file (or directory) /usr/adm/lastlog. I figure it's a dir, so I created
<a dir by that name. Still, "Never logged in". Any ideas?


	It is a FILE which contains the time, line, and host of your
last login in.  It is hashed by you UID, so it can be read with something like:

  lseek(last_log, uid * sizeof(l_log),0);

	This true for 4.[23] BSD anyway.  Try creating an empty file.
->Spike

whitney@think.COM (David Whitney) (06/14/88)

As a few people have pointed out, /usr/adm/lastlog is supposed to be file.
I therefore created an empty file of that name and things still don't work.
Nothing is ever put into the file, and there never were errors when (supposed)
access was attempted. What am I missing? Why doesn't finger say
Last login: <a date>
or when I login for that matter?

I tried turning on system accounting, but that didn't help so I shut it off
again.

Help?
David Whitney, MIT '90                     Still learning about my Apple //GS
{the known universe}!ihnp4!think!whitney   and all of its secrets. Any and all
whitney@think.com                          technical info appreciated.
DISCLAIMER: If they only knew what I was doing and saying here...