GNOME Bugzilla – Bug 686736
log out not offered when logged in as root
Last modified: 2012-10-31 16:45:22 UTC
Today I observed a user completely confused by the lack of a logout option when they logged in as root. They created a new user in the Fedora firstboot thingy (without a home directory), logged in as root using "Other...", copied their home directory from another machine, and wanted to log out and log back in as the user they initially created. There are a few things weird about this that could be better but it is clearly a bug that we don't offer log out in the case where the logged in user isn't the primary user account on the system. The installer / initial setup should also probably help migrate data (like in some of our mockups) but that's another story.
Created attachment 227106 [details] [review] userMenu: Show the Log Out item in more cases There can be cases where accountsservice may skip special users that shouldn't be shown to the user, like "root", that the user can still log into with the "Not listed..." menu item. Instead of checking for the existence of one of these users, make sure that the one user is not the same as the user already logged in. Completely untested patch.
Created attachment 227497 [details] [review] another untested patch Another untested patch. This one tries to handle both the 'remote user' and the 'root' situation.
tested, and pushed