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.

** Attachment added: "Read more about the patch at upstream gnome bugzilla"
   
http://launchpadlibrarian.net/8651435/gnome-system-tools-2.18.1.delete-self.patch

-- 
[users-admin] should warn the user of what he's doing when unselecting the 
administration group
https://bugs.launchpad.net/bugs/25947
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to