Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5922  / 2 Years ago, mon, may 23, 2022, 1:50:17

With gdm3, I was able to remove the last connected users from the list by removing the file '/var/log/ConsoleKit/history'



With lightdm, the last users appears even when :




  • removing /var/log/ConsoleKit/history

  • removing /var/lib/lightdm/.cache/unity-greeter/state



Where does lightdm store this list ?



Edit:
It seems like it's using the content from the last command. Then purging the content of the file /var/log/wtmp is sufficient to remove any previously connected user from the list :



# > /var/log/wtmp


But, after doing this, I have the unwanted side effect that users loging in via lightdm doesn't appears at all in this list.



I must say that I'm in a enterprise network environment using NIS.



Edit2:
Well, it seems that lightdm uses wtmp to display recent network users list, but does not update it. So, lightdm will show a network user only if it logged in in another fashion (ssh, login), like I did on this computer before. cf:





Edit3:
I just added the following line to the file /etc/pam.d/lightdm To force lightdm to store users in wtmp :



session optional        pam_lastlog.so silent

More From » 12.04

 Answers
7

So, to remove last connected network users from the list, just purge the /var/log/wtmp file :



# > /var/log/wtmp


Besides, to make lightdm remember last connected network users, one can add the following line to the file /etc/pam.d/lightdm :



session optional        pam_lastlog.so silent

[#35705] Monday, May 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ongdiligenc

Total Points: 452
Total Questions: 111
Total Answers: 107

Location: Ukraine
Member since Sun, Dec 13, 2020
3 Years ago
;