Comment 7 for bug 25947

Revision history for this message
Harrison Metzger (harrisonmetz) wrote :

I have posted a patch on the upsteam gnome bugzilla. Its not as fancy as Phil's suggestion, but it will warn each user when removing themselves from the admin group. If you think its needed I could add a system that will check root pw is not empty or atleast one user is in the admins group. But this will get difficulty if people make manual changes. What if someone manually modifies the sudoers file and hard codes their name into it. If this would have to parse the sudo file than you would need to know how its organized and if they changed sudo you would need to change g-s-t too. Also, if you had a libsudo to read it for you, this would introduce more dependencies into the package. I fell its best just to warn if you are deselecting your admin privs and prevent user's from deleting their account. If they really wanted to delete their account they could log in as root and delete it there.

Anyway, I have included the patch but please read more about it at upstream bugzilla.