Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, How do I configure a linux system to send an email (or just execute a script) as soon as someone does an su? I know that it logs the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    46

    su alert


    Hi,

    How do I configure a linux system to send an email (or just execute a script) as soon as someone does an su?

    I know that it logs the su and I could have logwatch or swatch check for it periodically, but is there a quicker (instant) method?

    Thanks.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,930
    I'm not sure how to do this, but you could change the root password and keep it to yourself, then any users that you want to have root access, grant them specific permissions using the 'sudo' command. You can limit people to certain commands then, and everything they do is logged.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •