Create the loginlog file in the /var/adm directory.
# touch /var/adm/loginlog |
Set read and write permissions for root on the loginlog file.
# chmod 600 /var/adm/loginlog |
Change group membership to sys on the loginlog file.
# chgrp sys /var/adm/loginlog |
Make sure the log works by attempting to log into the system five times with the wrong password after the loginlog file is created. Then display the /var/adm/loginlog file.
# more /var/adm/loginlog pmorph:/dev/pts/0:Fri Jan 13 08:55:23 1996 pmorph:/dev/pts/0:Fri Jan 13 08:55:31 1996 pmorph:/dev/pts/0:Fri Jan 13 08:55:39 1996 pmorph:/dev/pts/0:Fri Jan 13 08:55:50 1996 pmorph:/dev/pts/0:Fri Jan 13 08:56:00 1996 # |