------------ Original Message ------------
Date: Thursday, April 09, 2015 11:03:04 -0600 From: Frank Cox theatre@melvilletheatre.com
On Thu, 9 Apr 2015 12:58:18 -0400 Alfred von Campe wrote:
The thread on the CentOS 7.1 user login screen reminded me of a small nagging issue I have on CentOS 6. We are using a Windows AD backend to authenticate users on our CentOS 6 systems. When a system is built, and nobody has yet logged into it, you have to enter your username in the login screen to log in. The next time you are the the login screen it lists all the users who have logged in (via the graphical login screen). This works great if this is your own desktop and nobody ever logs into it, but on a shared system the list can get very long. Does anyone know where this lists is kept?
I think that you can exclude usernames from the list on Centos 6 by making their user number less than 500.
You can (also) exclude entries by enumerating them on an "Exclude=" line in the greeter section of /etc/gdm/custom.conf .
Alternatively, you can suppress the list totally by changing the default of gdm->simple-greeter->disable_user_list with the gconf editor.
I think that you can exclude usernames from the list on Centos 6 by making their user number less than 500.
That doesn’t help me, as I have no users defined in the /etc/passwd file, and the UIDs are defined in a corporate database that match the employee number.
You can (also) exclude entries by enumerating them on an "Exclude=" line in the greeter section of /etc/gdm/custom.conf .
Not what I had in mind either, but this *may* help.
Alternatively, you can suppress the list totally by changing the default of gdm->simple-greeter->disable_user_list with the gconf editor.
I still like to see my name if I’m the only one that uses the system, and same goes for others.
What I am really looking for is where gdm (or whatever) caches the list of users who have previously logged in to a system. I have tried the brute force approach (grep -R) without success.
Alfred
On 04/09/2015 12:46 PM, Alfred von Campe wrote:
What I am really looking for is where gdm (or whatever) caches the list of users who have previously logged in to a system. I have tried the brute force approach (grep -R) without success.
It's a dbus service.
# rpm -qf /etc/dbus-1/system.d/org.freedesktop.Accounts.conf accountsservice-0.6.39-2.fc21.x86_64
Documentation in: /usr/share/dbus-1/interfaces/org.freedesktop.Accounts.xml
For example: $ dbus-send --system --type=method_call --print-reply \ --dest=org.freedesktop.Accounts \ /org/freedesktop/Accounts \ org.freedesktop.Accounts.ListCachedUsers
Gordon:
It's a dbus service.
Interesting — thanks!
# rpm -qf /etc/dbus-1/system.d/org.freedesktop.Accounts.conf accountsservice-0.6.39-2.fc21.x86_64
That file/RPM does not appear to be available on CentOS 6.
Documentation in: /usr/share/dbus-1/interfaces/org.freedesktop.Accounts.xml
For example: $ dbus-send --system --type=method_call --print-reply \ --dest=org.freedesktop.Accounts \ /org/freedesktop/Accounts \ org.freedesktop.Accounts.ListCachedUsers
Alas, because it’s not available for CentOS 6, none of the above is available/appicable, so I’m back to square one.
Alfred
On Apr 10, 2015, at 17:12, Gordon Messmer gordon.messmer@gmail.com wrote:
Less sure about 6. Maybe look at /var/cache/gdm ?
I think you nailed it! I was using “grep -R” to search for all files that contained the usernames I wanted to remove, but gdm creates directories named after the usernames, which is why I didn’t find them. Next time I log out and back in I will be able to tell for sure.
Thanks, Alfred