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

Re: Finding the owner of a session



Hi,

/me thinks for a moment.

who | grep :0 | cut -f 1 -d ' '

Try that :)

David

On Saturday 13 December 2003 23:26, Don Rozenberg wrote:
> I am running KDE under Knoppix 3.3.  I am writing a script that will be
> run when a digital camera is attached via USB.
>
> I would like to find a way of determing the userid of the person who
> logged in and started the KDE session.  One script, usb-mount, looks at
> /dev/console and gets root as the answer.  Is there a better way to
> determine the userid.
>
> --
> Don Rozenberg
> 707-882-3601
> rozen@mcn.org



Reply to: