+ Post New Thread
Results 1 to 3 of 3
*nix Thread, tracking logins and logouts in Technical; Is it possible in U9.10, to send an email to root everytime a user logs in and logs out?...
  1. #1

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,759
    Thank Post
    870
    Thanked 672 Times in 441 Posts
    Rep Power
    502

    tracking logins and logouts

    Is it possible in U9.10, to send an email to root everytime a user logs in and logs out?

  2. #2

    Join Date
    Feb 2009
    Posts
    95
    Thank Post
    3
    Thanked 33 Times in 32 Posts
    Rep Power
    17
    Few thoughts come to mind...

    I'm afraid I'm not too familiar with Ubuntu, but if you're logging in via SSH you could probably pop something in the /etc/ssh/sshrc file to email you each time at least for login (pipe some text through mail or write a small script in your favorite language).

    Otherwise monitoring whatever log file is generated on login (and logout?) would be an option (the log on FreeBSD is /var/log/auth.log, not sure for Ubuntu). You could have a cron job keeping an eye on it.

    Another option might be global shell rc scripts... I think there are user .bash_logout and .logout scripts that run on logout, I expect there are global versions of these... have a look at the man pages for the shells.

  3. Thanks to Chillibear from:

    Gatt (20th February 2010)

  4. #3

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,759
    Thank Post
    870
    Thanked 672 Times in 441 Posts
    Rep Power
    502
    Cheers will look at sshrc and auth.log

    Its only myself that logs into the server, but jsut found all our website files gzipped - so wondering if its a faulty script (though they have been running fine all week!) or if someone is getting in!

SHARE:
+ Post New Thread

Similar Threads

  1. Generic student logins
    By kaphc in forum East Midlands Broadband Consortium (EMBC)
    Replies: 0
    Last Post: 13th January 2010, 12:09 PM
  2. Do you use SIMS Trusted Logins
    By dyoung5 in forum MIS Systems
    Replies: 21
    Last Post: 20th May 2009, 12:20 PM
  3. Logins for every child.
    By Jiser in forum Windows
    Replies: 18
    Last Post: 15th October 2008, 11:53 AM
  4. Prevent simultaneous logins and more ...
    By FAA in forum Windows Vista
    Replies: 0
    Last Post: 8th September 2008, 10:48 AM
  5. Speed up Service Pack 2 Logins
    By Nij.UK in forum Windows
    Replies: 4
    Last Post: 28th September 2006, 07:39 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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