solaris >> lastlog in /var/adm

by Dolphin » Tue, 03 Jun 2008 08:43:36 GMT

Hi,

There is this file in /var/adm/lastlog. I would like to know how to
read it, any pointer is appreciated.

Thanks in advance.


solaris >> lastlog in /var/adm

by webigh86 » Tue, 03 Jun 2008 11:14:39 GMT





I think your better off using the 'last' command as it displays data
in a more readable format. Examples include:

# man last
# last
# last shutdown
# last login
# last root
# last reboot



solaris >> lastlog in /var/adm

by andrew » Tue, 03 Jun 2008 16:35:51 GMT

In article < XXXX@XXXXX.COM >,
XXXX@XXXXX.COM writes:


last(1) doesn't display /var/adm/lastlog at all.
The only command which does is finger(1).
Other than that, it's used by login, sshd, pam modules, and the like.

The file is a (sparse) array of struct lastlog (/usr/include/lastlog.h)
indexed by uid. Hence it can appear very big if you have large uids, but
it should be a sparse file (unless copied by anything which doesn't
preserve sparse files).

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]


Similar Threads

1. Size of /var/log/lastlog - Linux

2. /var/log/lastlog too large

While running mondoarchive, and having it end up in an md5sum loop,
I noticed that the size of /var/log/lastlog was 1254130450140 bytes.

Yes, that's 13 digits long.  So I deleted it.  So far, nothing  has
re-created it.  And that's the question:  What creates /var/log/lastlog ?

The system, FC3 2.6.9-1.681_FC3smp, seems to be running along just fine.
Of course, the lastlog command complains that the file doesn't exist.

Any suggestions about how to "recover" from this condition would be welcomed.

Thanks.

3. (patch for Bash) ${var|.strip0}, ${var|.strip}, ${var|.lrstrip}, ${var|.lstrip}, ${var|.rstrip}

4. Why is apache logging to /var/adm/messages?

I have an apache 1.3.27 running on Solaris 7.

ErrorLog is set to go to /opt/apache/logs/error_log
and CustomLog is set to go to /dev/null

Still apache is logging lots of the following messages to
/var/adm/messages

APACHE[<PID>]: [1] mngFormInfo: ERROR, expecting to find data-encoded

How can I tell apache not to write to /var/adm/messages?

Cheers
Stef

5. /var/adm/ras/diag_log

6. /var/adm/cron/log with 5L is growing too fast

Hi everybody!

I have a short question:

Right now there is written a message in /var/adm/cron/log on every
start and finish of a cronjob.

How can I reduce this logging input for crond on AIX5L?


Kind regard
Mark

7. sar Can't open /var/adm/sa/sa01

8. [Newbie:] Where is my /var/adm/messages?