From owner-freebsd-questions Wed Aug 8 18:43:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from binary.ath.cx (unknown [200.171.41.43]) by hub.freebsd.org (Postfix) with ESMTP id 3629437B403 for ; Wed, 8 Aug 2001 18:43:49 -0700 (PDT) (envelope-from binary@binary.ath.cx) Received: (from binary@localhost) by binary.ath.cx (8.11.4/8.11.3) id f791fjL01524; Wed, 8 Aug 2001 22:41:45 -0300 (BRT) (envelope-from binary) Date: Wed, 8 Aug 2001 22:41:45 -0300 From: BinarySoul To: Eric Anderson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: finding user of su Message-ID: <20010808224145.A689@binary.ath.cx> References: <3B715A4A.65BD8221@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B715A4A.65BD8221@centtech.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG There are a lot of ways you can do that :) Really... You can just look at you environment: #echo $LOGNAME (bash) %echo $user (t?csh) Things like: id -p | grep login ... Well, I said, there are a lot of ways... Even: cat << lol > buh.c #include #include int main(void){ printf("%s\n",getlogin()); return 0; } lol must work Eric Anderson wrote: > Is there a tool (or how would I write one) that can tell me the original > user after an su? Basically, if I su to root, how can I tell who I su'd > from? > > > -- > ------------------------------------------------------------------------------- > Eric Anderson anderson@centtech.com Centaur Technology (512) > 418-5792 > Truth is more marvelous than mystery. > ------------------------------------------------------------------------------- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message