[Desktop-packages] [Bug 1768995] Re: The "Unlock" button of user administration asks for wrong user

2018-05-04 Thread Gunnar Hjalmarsson
On 2018-05-04 03:09, Patola wrote:
> Adding to a sudo-enabled group is not enough?

No. Authentication happens through PolicyKit, and PolicyKit does not
know about "procer3d".

$ cat /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf
[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

As you can see it does know about the unix group "sudo", and accounts of
the type "Administrator" belong to "sudo". So one way is to do as Jeremy
suggested and change those users accounts to be "Administrator".

Another way is to tell PolicyKit what you want. You can do so by
creating the file /etc/polkit-1/localauthority.conf.d/52-my-admin.conf
and giving it this contents:

[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin;unix-group:procer3d

You can read more about it in "man pklocalauthority".

HTH

** Changed in: gnome-control-center (Ubuntu)
   Status: Incomplete => Invalid

-- 
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:
  Invalid

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
  #%sudoALL=(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


[Desktop-packages] [Bug 1768995] Re: The "Unlock" button of user administration asks for wrong user

2018-05-03 Thread Patola
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
  #%sudoALL=(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


[Desktop-packages] [Bug 1768995] Re: The "Unlock" button of user administration asks for wrong user

2018-05-03 Thread Jeremy Bicha
I apologize. I mean you need to set that for razgriz.

** Changed in: gnome-control-center (Ubuntu)
   Status: New => Incomplete

-- 
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
  #%sudoALL=(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


[Desktop-packages] [Bug 1768995] Re: The "Unlock" button of user administration asks for wrong user

2018-05-03 Thread Jeremy Bicha
You need to set patola's Account Type to Administrator for patola to be
able to make changes to User Accounts.

-- 
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
  #%sudoALL=(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


[Desktop-packages] [Bug 1768995] Re: The "Unlock" button of user administration asks for wrong user

2018-05-03 Thread Patola
Attachment screen showing the logged in user is indeed razgriz, but it
asks for patola's password

** Attachment added: "unlock button askin password for wrong user"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+attachment/5133306/+files/Selection_001.png

-- 
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:
  New

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
  #%sudoALL=(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