in users-admin the name 'root' is checked instead of uid 0

Bug #255980 reported by flaviano petrocchi
4
Affects Status Importance Assigned to Milestone
GST
Won't Fix
Low
gnome-system-tools (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: gnome-system-tools

System: Ubuntu 8.04.1 Package: gnome-system-tools 2.22.0
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 know this is not in the Ubuntu policy, but this can be done in every Linux system so should be handled correctly. 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.

Revision history for this message
Andreas Moog (ampelbein) wrote :

I can confirm that this should be changed.

Changed in gnome-system-tools:
status: New → Confirmed
Revision history for this message
Andreas Moog (ampelbein) wrote :

I just added this bug to Bugzilla. (http://bugzilla.gnome.org/show_bug.cgi?id=547864)

Changed in gst:
status: Unknown → New
Changed in gnome-system-tools (Ubuntu):
importance: Undecided → Wishlist
status: Confirmed → Triaged
Changed in gst:
importance: Unknown → Low
status: New → Confirmed
Changed in gst:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.