Author Topic: get date of last logon of a user  (Read 608 times)

bau.miao

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
get date of last logon of a user
« on: November 08, 2016, 08:13:20 pm »
Hi,

I have installed Zentyal 4.2.
How can I get the date of the last logon of a particular user?

Thanks!

Sand_man

  • Zen Samurai
  • ****
  • Posts: 272
  • Karma: +17/-0
    • View Profile
Re: get date of last logon of a user
« Reply #1 on: November 08, 2016, 09:12:05 pm »
System user?
Code: [Select]
last usernameusername - particular user

Or samba user?

bau.miao

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: get date of last logon of a user
« Reply #2 on: November 09, 2016, 08:37:36 am »
Sorry:
samba users!

Sand_man

  • Zen Samurai
  • ****
  • Posts: 272
  • Karma: +17/-0
    • View Profile
Re: get date of last logon of a user
« Reply #3 on: November 09, 2016, 08:43:36 pm »
May be
Code: [Select]
grep 'username' /var/log/syslog | grep 'needed data'
'needed data' - 'connect',  'opendir', 'open'...
« Last Edit: November 10, 2016, 10:40:47 am by Sand_man »