Adding to a sudo-enabled group is not enough? Since /etc/passwd and /etc/shadow do not have 'account type' fields, what does it mean to be an administrator? Belong to the admin group? adm? sudo? Why did gnome-control-center asked specifically for patola's password? What if there were two people with 'administrator' types? Should it instead ask for the root password then?
[22:08] [7973] [patola@buzinskas patola]% id uid=1000(patola) gid=1000(patola) groups=1000(patola),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),1001(procer3d) [22:08] [7974] [patola@buzinskas patola]% id razgriz uid=1002(razgriz) gid=1003(razgriz) groups=1003(razgriz),1001(procer3d) [22:08] [7975] [patola@buzinskas patola]% id felipe uid=1001(felipe) gid=1002(felipe) groups=1002(felipe),1001(procer3d) [22:08] [7976] [patola@buzinskas patola]% id ayrton uid=1003(ayrton) gid=1004(ayrton) groups=1004(ayrton),1001(procer3d) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1768995 Title: The "Unlock" button of user administration asks for wrong user Status in gnome-control-center package in Ubuntu: Incomplete Bug description: I have just installed a quite vanilla Ubuntu 18.04 setup with just 4 users: patola, razgriz, ayrton, felipe. The first user, uid 1000, was patola. As patola, I also have done the adduser and passwd for them. Then razgriz logged in to the machine (he's on the procer3d group). When he tried to go to control center, details, users, and he clicked on the "Unlock" button, the dialog asked for patola's password, not his password I don't know if the sudoers file has any impact on it, but here it is: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # 3DProcer %procer3d ALL=(ALL) NOPASSWD: ALL # Members of the admin group may gain root privileges #%admin ALL=(ALL) ALL # Allow members of group sudo to execute any command #%sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d ========================================================================= expected behaviour: gnome-control-center should ask for razgriz' password, he was the one logged in (patola was not at the time). Instead, it asked for patola's password. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: gnome-control-center 1:3.28.1-0ubuntu1 ProcVersionSignature: Ubuntu 4.15.0-20.21-lowlatency 4.15.17 Uname: Linux 4.15.0-20-lowlatency x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Thu May 3 19:17:49 2018 InstallationDate: Installed on 2018-05-03 (0 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) SourcePackage: gnome-control-center UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp