]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: more specific error message for unknown users
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 17 Oct 2017 15:03:58 +0000 (16:03 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 14 Nov 2017 18:15:33 +0000 (18:15 +0000)
commit095b8833d65bcda44b02ab72cd7ae9a1bf2a2572
tree44a672d1db2771e4f1d9561872a61a01c983d8f6
parente4d2984bf8514ab576a66d5ac1f1cde746bb32a3
logind: more specific error message for unknown users

If you try to run `loginctl user-status` on a non-logged in user to see
whether "Linger" is enabled, it doesn't work.

If you're already an expert in logind, the fact that the user is considered
unknown actually tells you the user is not lingering.  So, probably they
they do not have lingering enabled.  I think we can point towards this
without being misleading.

I also reword it because I thought it was slightly confusing to run
`loginctl user-status root` and get an error back about "User 0".  Try to
be more specific, that it is "User ID 0".
src/login/logind-dbus.c