[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

lastlogin Command

Purpose

Reports the last login date for each user on the system.

Syntax

/usr/sbin/acct/lastlogin

Description

The lastlogin command updates the /var/adm/acct/sum/loginlog file to show the last date each user logged in. Normally, the runacct command, running under the cron daemon, calls this command and adds the information to the daily report. However, the lastlogin command can also be entered by a user who is a member of the ADM group.

Note: You should not share accounting files among nodes in a distributed environment. Each node should have its own copy of the various accounting files.

Security

Access Control: This command should grant execute (x) access only to members of the ADM group.

Files

/usr/sbin/acct The path to the accounting commands.
/var/adm/wtmp The login and logout history file.
/var/adm/acct/sum Cumulative directory for daily accounting records.

Related Information

The runacct command.

The cron daemon.

For more information about the Accounting System, the preparation of daily and monthly reports, and the accounting files, see the Accounting Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.

Setting Up an Accounting System in AIX Version 4.3 System Management Guide: Operating System and Devices explains the steps you must take to establish an accounting system.


[ Previous | Next | Contents | Glossary | Home | Search ]