GNOME Bugzilla – Bug 547864
In users-admin the name 'root' is checked instead of uid 0
Last modified: 2012-11-24 20:28:15 UTC
Please describe the problem: A User of Ubuntu reported the following bug on Launchpad (https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/255980): I use an alternate root user with login capabilities, created with "useradd -u 0 -o -g 0 -G 0 -m -s /bin/bash superuser", and i often login graphically with him. I made some experiments and saw that if in the /etc/passwd my superuser comes before the root user, users-admin doesn't recognize him as root. I found out that in users/users-settings.c function is_user_root uses login = oobs_user_get_login_name (user) and strcmp (login, "root") == 0. I think this should be corrected with something like uid = oobs_user_get_uid(user) and uid == 0. Because any user with uid = 0 has root privileges and should be treated as root whatever his name is. Thanks for your attention. Best regards. Steps to reproduce: 1. Create another user with UID 0 2. Start users-admin Actual results: The other User with UID 0 is not being shown as root. Expected results: The other user should be shown as root. Does this happen every time? Yes Other information:
Hmm, strange use case. We can fix that easily though - that's in liboobs now.
According to its developer(s), gnome-system-tools is not under active development anymore. Functionality has been mostly integrated into GNOME Control Center / "[System] Settings". It is unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping - Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.