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

Finding the owner of a session

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

Reply to: