[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loged in users



On Wed, 4 Jun 1997, Yaniv Orenstein wrote:

> How can i tell if some one is loged via su?
> because when you su to another user and do finger or who you will not see
> them unless you do a ps look up and see there bash/tcsh ps id? any other
> ideas?

how about this...

ps hau | awk print $1 | sort | uniq

(the awk part is probably the wrong syntax, but you get the idea...)


References: