Script Help -- documenting specific users that log into server
I am trying trying to write a shell script that will do a couple things:
1.) Identify any username that logs into the server.
2.) When the user logs out, send them an email detailing
their log in/out times, duration logged in, and what
processes they ran.
Basically, I need help with which commands I should employ and how to send the emails. Any advice is much appreciated. Thanks!!