← Back to team overview

dx-packages team mailing list archive

[Bug 1290785] Re: Users with UID > 60000 are invisible in login and Settings->User unless /etc/login.defs updated

 

Thanks to the hint from Robert, I finally found a solution for my user
to be listed again:

There actually seems to be a method for setting the account type in the
interface of org.freedesktop.Accounts.User, namely 'SetAccountType(in i
accountType);' but I could not find a list of valid values for
accountType. So I just uncached and then (re-)cached the user:

gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --method org.freedesktop.Accounts.UncacheUser euhus
()
gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --method org.freedesktop.Accounts.CacheUser euhus
(objectpath '/org/freedesktop/Accounts/User101125',)

Now the 'SystemAccount' property is set to false and the user is shown
in the login window.

But I still have no idea, why this account was ever marked as system
account.


What stil remains to be done is release a fix for the currently stable (and even LTS-) release.


P.S.: to find out about the available methods etc. I used:
gdbus introspect --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --recurse | less

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to accountsservice in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1290785

Title:
  Users with UID > 60000 are invisible in login and Settings->User
  unless /etc/login.defs updated

Status in “accountsservice” package in Ubuntu:
  Fix Released
Status in “accountsservice” source package in Trusty:
  Triaged

Bug description:
  [Impact]
  Users of Ubuntu 14.04 LTS with UID > 60000 will not show in the greeter or system settings without editing UID_MAX in /etc/login.defs. This was not required in 12.04 LTS. In 12.04 LTS users were only hidden if they had UID < UID_MIN. In 13.10 this was changed to UID < UID_MIN or UID > UID_MAX.

  [Test Case]
  1. Create a user with a UID > UID_MAX:
  $ adduser --uid 60001 big-uid
  2. Restart system
  Expected result:
  "big-uid" is shown in the greeter. Once logged in "big-uid" is shown in system settings.
  Observed result:
  "big-uid" is not shown in the greeter (14.04 LTS, 14.10)
  "big-uid" is not shown in system settings (13.10, 14.04LTS, 14.10)

  [Regression Potential]
  This could cause users that were previously hidden to be shown. This seems unlikely to be a problem as all system created user accounts are less than UID_MIN and there doesn't seem be a convention to use accounts > UID_MAX for this case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1290785/+subscriptions