Catching user switching and getting current active user from root on linux

mpnordland mpnordland at gmail.com
Tue Nov 30 17:47:32 EST 2010


I have situation where I need to be able to get the current active
user, and catch user switching eg user1 locks screen, leaves computer,
user2 comes, and logs on.
basically, when there is any type of user switch my script needs to
know.



More information about the Python-list mailing list