Re: Seeing who has su-ed

From: J. Rowan (security@jretrading.com)
Date: 03/21/03

  • Next message: Cameron Simpson: "Re: Seeing who has su-ed"
    Date: Fri, 21 Mar 2003 21:26:34 +0000
    To: "Klotz, Brian" <Brian_Klotz@heald.edu>
    From: "J. Rowan" <security@jretrading.com>
    
    

    In message <3E21E53CD30AD947ADD1DDD66934A48591ED51@pocmail.heald.edu>,
    "Klotz, Brian" <Brian_Klotz@heald.edu> writes
    >
    >I teach a Linux basics course and each term I have the problem of students
    >who do an su to become root, then rather than exiting, they su again to go
    >back to their regular account. The trouble is identifying when someone has
    >done this (they usually don't remember). The "who" command only shows login
    >shells (AFAIK) so it does not reveal when someone has su-ed.
    >
    >Does anyone know of a way to list all of the users currently logged in,
    >including when someone has su-ed to become another user?
    >
    Auditing of su use is important and should be built in. Depending
    somewhat on your distro, /etc/login.defs should have a section on su
    logging. A typical default would direct logging to syslog, but there
    should also be an option of specifying a separate logfile for su
    activities only. If syslog is used, check /etc/syslog.conf or equivalent
    for the destination of auth logs, under Debian the default is
    /var/log/auth.log.

    -- 
    security@jretrading.com
    

  • Next message: Cameron Simpson: "Re: Seeing who has su-ed"

    Relevant Pages

    • Re: Annoying system logging problem...
      ... >> logging seems to get all jammed up. ... When it crams up, I can't log in as root, or anyone else. ... as does anything else that uses the syslog facility. ... Any relevant and/or useful help would be much appreciated. ...
      (alt.os.linux)
    • Re: syslog logging
      ... > Sudo is fairly easy - logging via syslog is compiled in. ... > A keystroke logger only activated when root logs in? ... Freedom is a well armed sheep contesting the results of the ...
      (Focus-SUN)
    • syslog logging
      ... - All sudo activities ... Anything that could be related with "root" command ... Sudo is fairly easy - logging via syslog is compiled in. ...
      (Focus-SUN)
    • Re: Cant authenticate in NetInfo Manager
      ... I gather that it's preferable to log in as a user for "normal" computer sessions. ... I have been running Mac OS X since the beta, but I've been running it as my primary OS only since 10.0 was officially released. ... I have never had need to log in as root. ... Since direct logging in as root has been disabled for some years via telnet. ...
      (comp.sys.mac.system)
    • Re: Cant authenticate in NetInfo Manager
      ... I gather that it's preferable to log in as a user (even an admin user) for "normal" computer sessions. ... I have never had need to log in as root. ... I guess sudo might have done it, but su - got me root and a kill -9 allowed me to kill the process and reboot the machine cleanly. ... Since direct logging in as root has been disabled for some years via telnet. ...
      (comp.sys.mac.system)