Alert on successfully logins

Hi,

How difficult would it be to configure an alert on AIX that will inform me every time someone logs into the system?

You could use syslog.

Create a named pipe:

mkfifo /var/log/auth_pipe

Edit your /etc/syslog.conf; add something like

auth.info             /var/log/auth_pipe

Refresh your syslog to read in changes to it's config:

refresh -s syslogd

and then you can setup a cronjob for example, that reads out the named pipe to send you a report. You can also use a local username instead of a named pipe to get the messages directy displayed on the screen/terminal while they happen (can be quite disturbing) or you can use a plain file instead of a pipe which you can check later.
The file or named pipe has to exist before you do any changes/refresh to the syslogd.

Beware from deleting the entry for errpt :slight_smile: