Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: su alert

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    su alert


    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?


  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    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

Posting Permissions

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