[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
The user Objects have an attribute for system accounts: property Boolean SystemAccount Whether or not the account is a system account, such as adm. System accounts aren't returned by ListCachedUsers and should generally be ignored. It also has a shell property, but that (by default) seems to have no impact on listCachedUsers property String Shell, method SetShell(String path) The user's login shell. ListCachedUsers then is what is used by lightdm to fetch the list: method ListCachedUsers() returns: users: an array of paths for the user objects Returns a subset of the users who exist, typically those who have logged in recently, for populating chooser lists such as those used by GDM's greeter. Currently the accountsservice process scans /etc/passwd for users, filters out those with UID values which are below a threshold point to screen out system users, and sorts the rest by the number of times the users in question appear in /var/log/wtmp. Above a certain length, it's expected that the caller will disregard the list and present only an entry field. The entry field always needs to be available because we know that some results may be missing from this list. Best API def I found so far is from sssd: https://fedorahosted.org/sssd/wiki/DesignDocs/AccountsService Call is from lightdm at load_users in common/user-list.c This can be reproduced more easily by a direct dbus call: $ dbus-send --print-reply=literal --system --dest=org.freedesktop.Accounts /org/freedesktop/Accounts org.freedesktop.Accounts.ListCachedUsers ** Also affects: accountsservice (Ubuntu) Importance: Undecided Status: New ** Also affects: lightdm (Ubuntu) Importance: Undecided Status: New ** Changed in: ceph (Ubuntu) Status: New => Confirmed ** Changed in: base-passwd (Ubuntu) Status: New => Invalid ** Summary changed: - Libvirt Qemu appears in the list of users in Ligthdm and user switecher + System users appears in Ligthdm and user switcher (Accountsservice has no filter for shell types) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: System users appears in Ligthdm and user switcher (Accountsservice has no filter for shell types) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
Note: this is only affecting new installs, as he update keeps the old UID. So if there was a libvirt user it stays as-is. Ok, new guest, after installing the software I have several high User IDs: libvirt-qemu @ 64055 ceph @ 64045 I see, it is "just the same" for ceph. So it might be a more widespread generic issue that has no solution yet, but libvirt just has more exposure on UI based systems to be noticed faster? ** Also affects: ceph (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: Libvirt Qemu appears in the list of users in Ligthdm and user switecher To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
** Attachment added: "example of high user ids visible" https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1667113/+attachment/4825074/+files/base-passswd-high-sys-users-visible.png -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: Libvirt Qemu appears in the list of users in Ligthdm and user switecher To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
I currently only have a KDE/sddm system and there ceph does not show up there. I'll get access to another system later today and check there for ceph - maybe we can learn the trick from it how to hide. Maybe I can spawn a new 16.04.2 default ISO to test locally sooner. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: Libvirt Qemu appears in the list of users in Ligthdm and user switecher To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
There are also allocations for mysql, ceph and others. Is libvirt just the one installed on a system with a gui more commonly? At least mysql should have some footprint ... Hmm I just checked mysql despite being allocated at 64001 becomes a <1000 number on install. So that is no good example. But I found that ceph is using its: $ id ceph uid=64045(ceph) gid=64045(ceph) groups=64045(ceph) Probably for a similar reason as libvirt - to stay consistent across nodes. I'll check if they show up as well ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: Libvirt Qemu appears in the list of users in Ligthdm and user switecher To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1667113] Re: Libvirt Qemu appears in the list of users in Ligthdm and user switecher
Hi, thank you for the report - I can confirm the issue. This was caused by fixing bug 1637601. This was brought up on IRC two days ago and I was already polling for opinions on the original but. There are way more such high-id users in there and I wonder why they would not show up. Maybe there is some filtering mechanism that I didn't know about yet. Adding a base-passwd task as they should be the best experts knowing how to deal with that (Authority for allocating such IDs). Also I'm gonna subscribe all participants of the old bug here. ** Changed in: libvirt (Ubuntu) Status: New => Confirmed ** Also affects: base-passwd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1667113 Title: Libvirt Qemu appears in the list of users in Ligthdm and user switecher To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/1667113/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs