What is the best way to monitor users logging into a system? One idea I had is to edit /etc/profile and add a command that gets executed that sends a message each time someone logs in. What about logout?