Originally posted by: SystemAdmin
I modified the .profile of a user id to start "script" when the user logs in.
When the user logs out, I have added a trap command in the .profile file to capture the exit signal.
And in that trap command, I have added the creation of a file called .logout.
And in the .logout file, I have added the command to send the test_audit file(created by script command) to the management, as an email.
Since the starting of the "script" is in the .profile of the user id what would keep someone from logging on as that user id run the ps -ef command find the "script" running in the profile and use the kill command to stop the "script" from running which would stop the tracking or logging of this data.
Also, if the session is closed without running the exit command then the logging is also not saved and emailed out ?
How to achieve the above 2 points? Can someone please guide me.
#AIX-Forum