Reports the last login date for each user on the system.
/usr/sbin/acct/lastlogin
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.
Access Control: This command should grant execute (x) access only to members of the ADM group.
/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. |
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.