After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 547864 - In users-admin the name 'root' is checked instead of uid 0
In users-admin the name 'root' is checked instead of uid 0
Status: RESOLVED WONTFIX
Product: gnome-system-tools
Classification: Deprecated
Component: liboobs
2.22.x
Other All
: Normal minor
: 2.30
Assigned To: system-tools-maint
system-tools-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-08-15 02:08 UTC by Andreas Moog
Modified: 2012-11-24 20:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Andreas Moog 2008-08-15 02:08:34 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:
Comment 1 Milan Bouchet-Valat 2009-12-13 21:18:13 UTC
Hmm, strange use case. We can fix that easily though - that's in liboobs now.
Comment 2 André Klapper 2012-11-24 20:28:15 UTC
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.