Issue Details (XML | Word | Printable)

Key: FL-2382
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: ermo | Rune Morling
Reporter: Yukimi
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Foresight Linux

2.3.0qa: Can't control Administration (Network/Services/DateandTime) by root-auth

Created: 21/Feb/10 01:06 PM   Updated: 30/May/10 05:54 AM
Component/s: Administration
Affects Version/s: 2.3.0
Fix Version/s: 2.3.0
Security Level: Public (Everyone can see this issue)

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive 20100306.tar.gz (217 kB)
2. GZip Archive 20100412.tar.gz (191 kB)
3. GZip Archive FL-2382.tar.gz (1.04 MB)
4. GZip Archive FL20100317.tar.gz (1.74 MB)
5. Text File polkit-gnome-authentication-agent-1-bugreport.txt (6 kB)
6. Text File stb-users.log (3 kB)
7. Text File users-admin.log (2 kB)
8. GZip Archive xsession-errors.tar.gz (2 kB)

Image Attachments:

1. Screenshot-yukimi@FL20100305.png
(642 kB)
Environment:
Linux birthday.local 2.6.30.10-4-fl.smp.gcc4.1.x86_64 #1 SMP Thu Feb 11 13:50:04 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
LANG=en_US.UTF-8
Issue Links:
Blocker
 
Relates to
 

Fixed Trove Versions: polkit=0.95-5-1


 Description  « Hide
Reproduce = 100%
Locale = English and Japanese (both)

(1) Install Foresight Linux 2.3.0 x86_64 dev. (iso from FL-dev ML) as clean.
(2) Reboot and logon with user (ex.Yukimi)
(3) conary updateall
(4) Gnome -> System -> Administration -> Network
(5) "click to make change"
(6) Click this "sheild" icon
(7) Authenticate dialog displayed.
(8) Try to blank or sudo password into "Password for root"
(9) Can't pass to controll

Please tell me if it is my misunderstand.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Tomas Forsman added a comment - 21/Feb/10 01:56 PM
try to give root a password first, open terminal and write:
sudo passwd root

and write 2 times the password you want to use, then try again to control network.


Yukimi added a comment - 21/Feb/10 02:49 PM - edited
Thanks for response. I could do that as you say.

zodman added a comment - 21/Feb/10 10:22 PM
its a temporal solution but it can not be solve by this ....

on foresight root password its disabled... i think its a problem of polkit configuration


Yukimi added a comment - 22/Feb/10 10:15 PM
Thanks and I agree with you. I was lost with this situation.
I hope this situations will be changed like as previous version...

Now changing priority from Critical to Normal because temporal solution is here.


ermo | Rune Morling added a comment - 23/Feb/10 12:57 AM - edited
This just in from 'man pklocalauthority'

1. gksudo gedit /etc/polkit-1/localauthority.conf.d/60-desktop-admin-policy.conf
2. paste the following contents

[Configuration]
AdminIdentities=unix-group:wheel
ResultAny=no
ResultInactive=no
ResultActive=auth_self_keep

3. Save
4. Try editing Network/Time/etc.

EXPLANATION:

By default, we add the first user on the system to the wheel group upon installation.

The above configuration allows users in the wheel group to make changes in all the places where 'auth_admin' is needed, providing that they are the active user and provide their own password.

Please report back if this works for you so that we can get it integrated.

António, where would a fix like this belong?


Tomas Forsman added a comment - 23/Feb/10 11:29 AM
My guess would be to change package "polkit" to ship that fix. But thats my guess only.

ermo | Rune Morling added a comment - 23/Feb/10 01:08 PM
Ok, just had a quick look at the polkit recipe.

Apparently, the framework is in place for using the desktop_user_r and desktop_admin_r groups to do passwordless authentication for a well defined subset of actions that require elevated privileges.

Unfortunately, the first user on the system is not added to those two groups by default, meaning these convenience policies do not take effect on a default install.

I have updated the polkit recipe to include the above fix, which will be installed to /etc/polkit-1 and not /var/lib/polkit-1/ – let's hope it doesn't cause too many issues.


António Meireles [aka doniphon] added a comment - 23/Feb/10 01:13 PM
well, we have enough data to get around this in a clean satisfatory way,

ermo ping me on #foresight-devel when online plz


zodman added a comment - 23/Feb/10 02:54 PM
another situation, same problem

Yukimi added a comment - 24/Feb/10 09:27 PM - edited
Reinstalled this system in this morning and I had created a file as "60-desktop-admin-policy.conf".
Now I can control some of administration. (tested only few minutes)

Please tell me if you want to report another thing. I will erase this system tonight for another testing.


ermo | Rune Morling added a comment - 24/Feb/10 10:05 PM
@Yukimi,

Which parts can't you control? On my systems, the above change appears to give me access to edit all the things in "System->Administration".


Yukimi added a comment - 25/Feb/10 01:42 PM
I could't find critical problem. No parts can't control now.

Checked this issue with Admin menus.

System -> Administration
+ Add/Remove Software => (a)
+ Network => (b) *1
+ Printing => (a) (I have no printer)
+ Services => (b)
+ Shared Folders => (b)
+ Software Sources => (a) *2
+ Software Update => (a)
+ Time and Date => (b)
+ Users and Groups => (b)

(a)...No need to authenticate. (No dialog)
(b)...Need authenticate. But it's solved after the edited.

BTW:
*1 'black-box' status displayed little bit far from icon on panel.
(1280x1024)
*2 Software sources can not be disable with check box.
(not an impremented?)

Sometimes "auth-dialog" displayed behind another window.


ermo | Rune Morling added a comment - 26/Feb/10 04:38 PM
Yukimi,

Thanks for reporting back. I suspect that the reason you are seeing 'No need to authenticate' is because I've used 'auth_self_keep', which keeps credentials for a short interval (as opposed to 'auth_self'). This is a convenience feature.


ermo | Rune Morling added a comment - 26/Feb/10 08:36 PM
Fixed in polkit on fl:2-devel and fixed trove promoted to 2-qa.

Yukimi added a comment - 27/Feb/10 08:38 AM
Thanks for the fixed.

Yukimi added a comment - 27/Feb/10 12:07 PM
It is work fine with re-installed 2.3.0qa that updated all.

Yukimi added a comment - 27/Feb/10 12:57 PM
Hmm. Crashing when added another user...
I'll report this issue later.

Yukimi added a comment - 27/Feb/10 02:03 PM - edited
(deleted)

Yukimi added a comment - 27/Feb/10 02:08 PM - edited
crashing if added new admin when Authentication.

Reproduce = 100%
(1) Install 2.3.0qa => user:yukimi => sudo conary updateall
(2) logon as yukimi. Can administrate with authentication in this time.
(3) make a new user has admin privilege "newadmin".
(4) Can't authenticate with password.
(5) Can't authenticate with password.
(6) Can't authenticate with password and Bug-buddy. (See attached log)
(7) Do not display authentication dialog in this session.
(8) Can't administrate forever.


Yukimi added a comment - 27/Feb/10 02:09 PM - edited
Do not test at your important environment.

ermo | Rune Morling added a comment - 02/Mar/10 08:07 PM
Yukimi,

https://wiki.ubuntu.com/DebuggingGnomeSystemTools describes a way to debug gnome-system-tools. Could you try that and report back?

When I tried to reproduce using the procedure described in the link, I could not reproduce the error.


Yukimi added a comment - 03/Mar/10 01:27 PM
Thank you for advise. I had success getting logs as attached.(reproduced)
The point is making another admin and 3 times authentication.

Linux FL0303.local 2.6.30.10-2-fl.smp.gcc4.1.x86_64 #1 SMP Mon Dec 28 17:22:23 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux


Yukimi added a comment - 03/Mar/10 01:39 PM
screenshot.

ermo | Rune Morling added a comment - 04/Mar/10 11:20 PM
Doniphon,
  1. Note that administration works for yukimis original user.
  2. We need to make sure that liboobs displays messages of priority DEBUG so that we can see what is sent over the wire from g-s-t <-> s-t-b when doing the debug dance from the Ubuntu wiki.
  3. s-t-b tries to create an admin user w/UID 6668 and GID 4294967295? That can't be right ...

Yukimi added a comment - 05/Mar/10 03:57 PM - edited
Please skip reading if this is not point.
This screen-shot was taken after this problem. "newadmin"'s UID/GID is same as made at first.
Maybe some program is trying to set GID as (unsigned long) -1.
System>Administration>Users and Groups> Advanced Setting>User privilege>admin privilege?
(I do not use adduser and useradd now.)
-------
[yukimi@FL20100305 ~]$ id
uid=500(yukimi) gid=500(yukimi) groups=10(wheel),500(yukimi)
[yukimi@FL20100305 ~]$ id newadmin
uid=6668(newadmin) gid=6668(newadmin) groups=6668(newadmin),4(video),10(wheel),11(cdrom),18(dialout),19(floppy),33(tape),46(plugdev),63(audio),71(scanner)

Yukimi added a comment - 06/Mar/10 09:56 AM
Attached file is screen-shot of process in the user privilege.
1. default
2. Create "newadmin"
3. Set password (is not same as yukimi's)
4. "newadmin" made at group (null).
5. Advanced setting of "newadmin"
6. User Privileges
7. Be able to get administrator privileges

António Meireles [aka doniphon] added a comment - 15/Mar/10 08:32 PM
can you guys do a conary update polkit{,-gnome} in either 2-qa or 2-devel, log off/log in and confirm issue is fixed for real this time ?

thanxs.


Yukimi added a comment - 16/Mar/10 01:53 PM
fl:2-qa : Result changed from previous check.
Install (yukimi) => change repo 2-qa => updateall => reboot => login => add "newadmin" => set privilege as root => yukimi CAN be authenticated => DIED in choosing "newadmin"
fl:2-devel : Result is same as 2-qa.
Install (yukimi) => change repo 2-devel => updateall => reboot => login => add "newadmin" => set privilege as root => yukimi CAN be authenticated => DIED in choosing "newadmin"

António Meireles [aka doniphon] added a comment - 16/Mar/10 01:59 PM
yukimi...

try to lunch virt-manager (other app that deps on polkit-gnome) see if things work. (also you on x86or x86_64) ?
also - what 'died' exactly ? (anything in ~/.xsession-errors ?)

Thanxs!!!!!!!!!!!!!!


Yukimi added a comment - 16/Mar/10 04:46 PM
(1) Screenshot when it's freeze. (2) .xsession-errors for you.
repo = fl:2-qa
Linux FL20100316.local 2.6.30.10-4-fl.smp.gcc4.1.x86_64 #1 SMP Thu Feb 11 13:50:04 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

ermo | Rune Morling added a comment - 11/Apr/10 01:07 PM
Yukimi,

I discovered a subtle bug with users-admin that was related to differences in output between the Debian (the expected output format) and RH (which we use) versions of the /usr/bin/passwd program. System-tools-backends would consequently list users as not being enabled no matter their actual status.

This should be fixed in system-tools-backends=/foresight.rpath.org at fl:devel//2-devel/2.10.0-0.3-1
and I did some testing with adding a new user and doing various admin stuff without running into issues.

Do note that, due to design deficiencies in g-s-t / s-t-b (according to the maintainer, no less!), you should create a new user, close the users-admin applet and then restart it before you make changes to the new user, such as adding the user to additional groups.

Please report back if this solves your issues.


Yukimi added a comment - 11/Apr/10 09:57 PM
Good morning, ermo.
Unfortunatelly I seem my Gnome(x86_64) is broken after updateall with 2-qa in this morning. (installed as clean)
To tell the truth I found this issue yesterday on another machine(x86) too. Now I can't check this issue.

To be continued in another thread... (after the dairy work)

— Mon Apr 12 06:57:01 JST 2010 —


António Meireles [aka doniphon] added a comment - 12/Apr/10 11:40 AM
more data plz.

António Meireles [aka doniphon] added a comment - 12/Apr/10 01:35 PM
there was an updateall issue introduced late last week that prevented conary from finding all deps on update. this has been fixed (afaik)

can you try updateall again plz ? (and thanxs)


Yukimi added a comment - 12/Apr/10 02:03 PM
Thank you for fixing. Broken gnome issue is solved. I do not making new thread.

By the way this issue has changed situation with 3-1. Please see attached screen-shot named 20100412.tar.gz.

[Operate] install 2.3.0qa -> conary updateall fl:2-qa -> reboot -> conary update system-tools-backends=/foresight.rpath.org at-mark fl:devel//2-devel/2.10.0-0.3-1

(1) Add 'newadmin' as administrator default. (It's not problem)
(2) 'User Privilleges' dialog is blank.
(3) Can not choice 'newadmin' or else. (It's is not problem for me)
And sometimes can not cancel with root-auth dialog.I could not found how to reproduce.


ermo | Rune Morling added a comment - 12/Apr/10 08:21 PM
Yukimi,

I can confirm that g-s-t is periodically slow to respond and that it's hard to understand why. Earlier on, I mentioned that [2] is a design deficiency according to the current Ubuntu maintainer. According to him, you should create a new user, close users-admin, open users-admin and only then assign extra permissions to your user.


Yukimi added a comment - 12/Apr/10 10:15 PM
I'd understood current situation that is complex. I hope this issue will be clean with next generation.
Using 2.3.0 with an admin for a while. Please decide with your thinking this issue is closed or not. Thanks you.

Yukimi added a comment - 30/May/10 05:54 AM
Thanks to ermo-san.