You are not logged in.

#1 2011-01-29 21:28:54

inz.mamon
Member
From: Poland
Registered: 2009-11-24
Posts: 4

Last console kit package upgrade broke permissons in Gnome

Today, after upgrade and reboot I wasn't able to use network manager connections nor shutdown the system as regular user in Gnome. I linked the problem with console kit which was upgraded to 0.4.3. Logging in to Gnome as root, gave me full permission, of course. Downgrading to version 0.4.1 fixed the problem.
Anyone had similiar issues with console kit?

update:

since 31.01.2011 update for slim to ver. 1.3.2-3 it's workin (at leas for me)
I reopened the topic as requested by some users.

Moderator edit: there's no use in using all kind of custom flags, just remove [Solved] if you reopened the topic, don't start putting in stuff like [Reopened] or [Not fixed], that's not helping anyone. Thank you.

Last edited by .:B:. (2011-02-09 09:34:28)

Offline

#2 2011-01-29 21:35:52

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

what is your login method to gnome?

what is your .xinitrc?

what is your shadow package version?


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-01-29 22:16:00

inz.mamon
Member
From: Poland
Registered: 2009-11-24
Posts: 4

Re: Last console kit package upgrade broke permissons in Gnome

wonder wrote:

what is your login method to gnome?

slim from inittab

wonder wrote:

what is your .xinitrc?

exec ck-launch-session gnome-session

wonder wrote:

what is your shadow package version?

shadow 4.1.4.2-4

Offline

#4 2011-01-29 22:21:45

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

slim is broken and it would be broken. i suggest to use lxdm because has built-in support for consolekit or directly gdm.

to prove yourself that is broken, just use startx and you'll see that everything is all right

Last edited by wonder (2011-01-29 22:22:36)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-01-29 23:06:36

inz.mamon
Member
From: Poland
Registered: 2009-11-24
Posts: 4

Re: Last console kit package upgrade broke permissons in Gnome

Wonder,
verified. You were right. Both ways, lxdm or startx work fine. I really liked the simplicity of slim, though.
Well, maybe SLiM will get updated in the future. Then I'll go back to it. For now, I'm gonna stick to lxdm.

Thank you for clearing things up.

Offline

#6 2011-01-30 00:25:18

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: Last console kit package upgrade broke permissons in Gnome

I have the same problem but also with startx:

inittab: x:5:once:/bin/su myname -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
xinitrc: exec ck-launch-session gnome-session
shadow: 4.1.4.2-4
consolekit: 0.4.3-1

Last edited by Radioactiveman (2011-01-30 00:25:53)

Offline

#7 2011-01-30 13:28:07

RkG
Member
Registered: 2010-05-13
Posts: 12
Website

Re: Last console kit package upgrade broke permissons in Gnome

Same problem here, thanks inz.mamon for your helpful post, I'm using xmonad with some gnome tools, launching it in xinitrc with:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xmonad

After updating, Nautilus and udisks tool stopped mounting my usb devices (not enough privileges error), I'm not in the storage group but, in any case, previously it worked (and adding my user to this group doesn't solves anything). Downgrading consolekit also worked for me.

Pd. HAL daemon is disabled in my system.

Last edited by RkG (2011-01-30 13:31:21)


"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity." — Jazz composer and bassist, Charles Mingus

Offline

#8 2011-01-30 15:08:00

monzer4819
Member
Registered: 2009-03-26
Posts: 26

Re: Last console kit package upgrade broke permissons in Gnome

Same problem here using startx from inittab ie:

inittab: x:5:once:/bin/su myname -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"

And then ck-launch-session gnome-session in xinitrc.   Guess I'll switch back to gdm...

Offline

#9 2011-01-30 15:29:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

i guess is something wrong with that command.

su myname -l
that's starting a login shell
-c "bash --login..."
a second login.

try removing the second --login and see if is working


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2011-01-30 16:08:57

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: Last console kit package upgrade broke permissons in Gnome

There is nothing solved here, and I cannot understand why you closed my topic.

I am affected by a totally different problem.

Please re-open the topic which I have already opened


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#11 2011-01-30 16:17:04

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

@legolas558 maybe you want to describe your setup better?


Give what you have. To someone, it may be better than you dare to think.

Offline

#12 2011-01-30 16:30:02

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: Last console kit package upgrade broke permissons in Gnome

@wonder: sure, but in the topic which I have already opened, why shall we pollute this one since I have a different setup? I am using Xfce 4.8 with thunar-volman and dbus. I have udev on my system but not HAL neither gvfs and I would like to have the removable devices easily mountable as they were before.

If you think this applies to this same topic, then let's speak about it here.

In my previously open topic I have already specified my .xinitrc startup line

Thanks


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#13 2011-01-30 16:42:36

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

no way you will be able to do it without installing gvfs.


Give what you have. To someone, it may be better than you dare to think.

Offline

#14 2011-01-30 17:16:13

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: Last console kit package upgrade broke permissons in Gnome

I have to say nothing what was posted help me with mounting usb pendrives
When i upgraded system mounting external volumes stopped to work, pendrive is showing in side panel in pcmanfm but there also pop ups dialog window with "Authentication is required" text
I have compiz standalone with pcmanfm, I don't use hal, dbus is in daemons array in rc.conf, udev and udisks installed
I log in by startx, my .xinitrc looks like this

#!/bin/sh

# launch the window manager
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session start-fusion.sh
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

start-fusion.sh consist of

#!/bin/bash
emerald &
nitrogen --restore &
setxkbmap pl &
#udiskie &
tint2 &
wicd-gtk &
volwheel &
exec compiz ccp --replace --indirect-rendering

I was using udiskie later to mount pendrive but it stopped to work for me also after last upgrade.
Downgrade any of packages (consolekit, udev, udisks) doesn't work too.

Maybe someone have an idea what to do to make it work like before.

PS I read all topics from last few days but there is no tip working in my situation.

Last edited by tydell (2011-01-30 17:23:05)

Offline

#15 2011-01-30 17:39:26

Hukka
Member
From: Finland
Registered: 2010-10-26
Posts: 4

Re: Last console kit package upgrade broke permissons in Gnome

I had the same problem, and I solved it by editing /usr/share/polkit-1/actions/org.freedesktop.udisks.policy and replacing all instances of "<allow_any>no</allow_any>" with "<allow_any>yes</allow_any>".

Last edited by Hukka (2011-01-30 17:52:05)

Offline

#16 2011-01-30 22:18:31

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: Last console kit package upgrade broke permissons in Gnome

I've been doing some modifications to all these org.freedesktop files as was recommended in other threads, but did not notice this one. I'll give it a try, thanks Hukka!

ADD// everything modified to <allow_any>yes</allow_any> with no change, I still get the Not Authorized window.

Last edited by Behemot (2011-01-31 00:25:24)

Offline

#17 2011-01-31 02:20:52

monzer4819
Member
Registered: 2009-03-26
Posts: 26

Re: Last console kit package upgrade broke permissons in Gnome

I agree, this should be re-opened as in the issue is not solved.

It definitely looks like an issue with Polkit, as everything that uses it is not working properly.  Shutdown buttons missing / Not authorized errors in NetworkManager etc.

I have noticed that if I log out of gnome and run startx again, everything is working.     So what's the difference between inittab and startx ?

Offline

#18 2011-01-31 07:13:07

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: Last console kit package upgrade broke permissons in Gnome

I downgraded consolekit for now.
Problem here as described in topicstart: gnome -- slim >> not authorized as user..

As wonder states getting rid of slim for now, would be a solution. But I really like it..

Offline

#19 2011-01-31 08:55:02

RkG
Member
Registered: 2010-05-13
Posts: 12
Website

Re: Last console kit package upgrade broke permissons in Gnome

A bug with a patch is already filled about this problem, very well explained. Maybe we could vote for it.

Last edited by RkG (2011-01-31 09:07:58)


"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity." — Jazz composer and bassist, Charles Mingus

Offline

#20 2011-01-31 12:04:38

monzer4819
Member
Registered: 2009-03-26
Posts: 26

Re: Last console kit package upgrade broke permissons in Gnome

It's unfortunate for me I guess the above patch doesn't apply- I'm not using xfce.   

I switched back to gdm as a daemon, instead of booting directly with inittab -> startx

Launching gdm from rc.conf solves 2 problems for me, this issue and an occasional freeze with kms when shutting down.   I may have lost a second or 2 from my boot up time, but at least it gets around 2 bugs.

Offline

#21 2011-01-31 13:41:12

harri
Member
Registered: 2010-02-25
Posts: 5

Re: Last console kit package upgrade broke permissons in Gnome

I have had the same problem but fixed it with downgrading consolekit. Only problem now is that the keyring is no longer automatically entered. anyone know how to fix it?

Offline

#22 2011-01-31 17:33:28

nstoyanov
Member
Registered: 2009-04-24
Posts: 26

Re: Last console kit package upgrade broke permissons in Gnome

I think I figured out the problem of not being able to mount removable devices! The wiki suggestion to put "dbus-launch" in .xinitrc is the culprit, at least in my case. I have dbus in rc.d, and in .xinitrc I have only "exec ck-launch-session startxfce4." Everything works as expected, even the weather plugin (which would mess up if "dbus-launch" is in .xinitrc as well). Removing "dbus-launch" from .xinitrc also speeds up the start time of Xfce significantly! smile

Good luck.

PS. I am talking about the issue with Thunar reported in this incorrectly closed thread: https://bbs.archlinux.org/viewtopic.php?id=112667. The thread also incorrectly links to this one.

Last edited by nstoyanov (2011-01-31 17:35:15)

Offline

#23 2011-01-31 18:16:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

guys, stop messing the polkit files. that is not the right way.

if you guys still have problems while with consolekit 0.4.1 works, then is all about shadow. I think you guys didn't merged /etc/pam.d/login.pacnew


Give what you have. To someone, it may be better than you dare to think.

Offline

#24 2011-01-31 20:33:12

ernia
Member
Registered: 2008-03-08
Posts: 27

Re: Last console kit package upgrade broke permissons in Gnome

i don't have any /etc/pam.d/login.pacnew .
reading the bug https://bugs.archlinux.org/task/22671 i've made some test.
using slim and consolekit 0.4.1-4 i have

fabio@s10 ~]$ ck-list-sessions | grep is-local
    is-local = TRUE

while the same command with consolekit 0.4.3.1 give me

[fabio@s10 ~]$ ck-list-sessions | grep is-local
    is-local = FALSE

either with exec ck-launch-session startlxde or exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startlxde.
if i run startx i have is-local=TRUE with exec ck-launch-session while dbus-launch --sh-syntax --exit-with-session seems to launch two sessions, i have two rows with is-local=TRUE.
the proposed fix does not fix slim, so i'll go for startx or will stay with old consolekit or i will give a try to lxdm, even if  i don't like it

Offline

#25 2011-01-31 20:37:13

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Last console kit package upgrade broke permissons in Gnome

@ernia if you have slim that's the problem. You don't have to test anything more.

slim is faulty don't use and don't try to spam forums trying to debug more. An update will come later to fix this


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB