[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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768995

Title:
  The "Unlock" button of user administration asks for wrong user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768995

Title:
  The "Unlock" button of user administration asks for wrong user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768995

Title:
  The "Unlock" button of user administration asks for wrong user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768995

Title:
  The "Unlock" button of user administration asks for wrong user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768995

Title:
  The "Unlock" button of user administration asks for wrong user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1768995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs