Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-08-02 00:41:05

syntax87
Member
Registered: 2013-08-02
Posts: 3
Website

Check log file for last login

Is there a way to find out if someone logged into xfce after locking the screen? Thanks.

Offline

#2 2013-08-02 01:06:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Check log file for last login

Can you explain a little better as to what you are trying to do? Which distro?

"who", "last", "loginctl" or "ck-list-sessions" might help depending on exactly what you want.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2013-08-02 01:15:37

syntax87
Member
Registered: 2013-08-02
Posts: 3
Website

Re: Check log file for last login

Thanks for the reply, i'm trying to find out when the computer was last unlocked from the xscreensaver login screen, i'm using Backbox 3.05.

Offline

#4 2013-08-02 02:30:27

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Check log file for last login

Have a look at the xscreensaver-command man file, specifically the "watch" parameter. You could run the program like this:

xscreensaver-command -watch > /tmp/xscr.log

...and review the log file for info. The log file would look something like this:

UNBLANK Thu Aug  1 22:26:49 2013
LOCK Thu Aug  1 22:27:53 2013
UNBLANK Thu Aug  1 22:27:57 2013

There is also a perl script in the man file that you could adapt to meet your needs.

Last edited by ToZ (2013-08-02 02:32:34)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2013-08-02 03:33:18

syntax87
Member
Registered: 2013-08-02
Posts: 3
Website

Re: Check log file for last login

Just what I needed, thanks very helpful.

Offline

Board footer

Powered by FluxBB