Date: Wed, 8 Aug 2001 22:41:45 -0300 From: BinarySoul <binary@binary.ath.cx> To: Eric Anderson <anderson@centtech.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: finding user of su Message-ID: <20010808224145.A689@binary.ath.cx> In-Reply-To: <3B715A4A.65BD8221@centtech.com> References: <3B715A4A.65BD8221@centtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h> #include <sys/param.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010808224145.A689>