You are not logged in.
Well, i guess polkit will be upgraded when systemd will be our default init systemd. So, polkit should remain the same for a long (short? let's hope) time.
Gdm and gnome-session will be upgraded soon, when 3.6 comes out...
Offline
Hi all, I'm in the same situation as Unia:
- Pure systemd setup, done exactly as per instructions in wiki
- Rebuilt polkit with systemd enabled
- Removed ConsoleKit
But I still get prompted for a password when mounting external drives, connecting to the network, and shutdown/reboot/suspend. I'm not using any DE (just Openbox) nor any DM (had issues with LXDM after systemd so uninstalled it), and I'm starting X from a tty using exec startx --vt $(fgconsole)
Any ideas how to make this loginctl stuff work? I've even tried tomegun's polkit with no luck (back to rebuilt polkit now).
Last edited by d3Xt3r (2012-09-08 06:52:29)
Offline
I'm currently using gdm to login I don't have any ideas at the moment, but I'll see if I can get mounting to work without a DM in the evening.
Offline
It looks like we're trying to do similar things: Automatic X login without a DM. Those scripts might be useful to some of you.
Offline
Getting rid of console-kit seems much of a hassle indeed, I guess I can live with it for now.
I got rid of consolekit this morning. I'm having at least a couple of problems. One is trivial. I can no longer reboot from my normal id, I have to use sudo. I understand that and can live with it.
The other one is not so easy to live with, although I think it may be for the same reason. nm-applet "thinks" there are no valid active connections, even though the network is working just fine. If I kill it and start it manually as root, it works correctly. But I've tried adding it to the system wide Openbox startup (/etc/xdg/openbox/sutostart) and then it starts two instances, neither of which see the network connections. Any suggestions?
Tim
Offline
The other one is not so easy to live with, although I think it may be for the same reason. nm-applet "thinks" there are no valid active connections, even though the network is working just fine. If I kill it and start it manually as root, it works correctly. But I've tried adding it to the system wide Openbox startup (/etc/xdg/openbox/sutostart) and then it starts two instances, neither of which see the network connections. Any suggestions?
Tim
Rebuild it with systemd support.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
@ratcheer: i guess you're not starting a user session: post the output of
loginctland
systemd-cgls systemd:/userOffline
@ratcheer: i guess you're not starting a user session: post the output of
loginctland
systemd-cgls systemd:/user
dexter@Inspiron-1122 ~ % loginctl
SESSION UID USER SEAT
1 1000 dexter seat0
1 sessions listed.
dexter@Inspiron-1122 ~ % systemd-cgls systemd:/user
systemd:/user:
<E2><94><94> dexter
<E2><94><94> 1
<E2><94><9C> 310 login -- dexter
<E2><94><9C> 327 /bin/sh /usr/bin/startx --vt 1
<E2><94><9C> 383 xinit xterm --vt 1 -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.W2gb73NZLO
<E2><94><9C> 384 /usr/bin/X -nolisten tcp :0 -auth /tmp/serverauth.W2gb73NZLO
<E2><94><9C> 387 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
<E2><94><9C> 392 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
<E2><94><9C> 401 compton -fFb -i 0.8
<E2><94><9C> 403 tint2
<E2><94><9C> 404 python2 /usr/bin/guake
<E2><94><9C> 405 sh /home/dexter/.config/openbox/autostart
<E2><94><9C> 406 volumeicon -b
<E2><94><9C> 411 synapse --startup
<E2><94><9C> 414 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
<E2><94><9C> 415 zeitgeist-datahub
<E2><94><9C> 423 /usr/bin/zeitgeist-daemon
<E2><94><9C> 467 /usr/bin/nm-applet --sm-disableLast edited by d3Xt3r (2012-09-09 10:33:42)
Offline
Uhm strange, because i was having the same problems(nm-applet and sudo for hibernate,reboot and poweroff), while i was starting xfce from a .service, that was ran as root. So i did not have the right pam session for my user.
Offline
Rebuilt polkit with systemd support and no longer need sudo prior to systemctl {reboot or poweroff}. Trying to rebuild networkmanager with systemd enabled results in persistent failures, excerpt below.
In file included from nm-enum-types.c:94:0:
../../src/wimax/iwmxsdk.h:25:29: fatal error: wimax/WiMaxType.h: No such file or directory
compilation terminated.
make[5]: *** [libnm_generated_la-nm-enum-types.lo] Error 1
make[5]: Leaving directory `/home/chris/ABS/networkmanager/src/NetworkManager-0.9.4.0/src/generated'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/chris/ABS/networkmanager/src/NetworkManager-0.9.4.0/src/generated'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/chris/ABS/networkmanager/src/NetworkManager-0.9.4.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/chris/ABS/networkmanager/src/NetworkManager-0.9.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chris/ABS/networkmanager/src/NetworkManager-0.9.4.0'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...My situation is same as ratcheer, and my only solution is to put sudo before nm-applet launch in autostart.
Offline
i'm having networkmanager issues too. I was able to sucessfully compile it with --enable-systemd (also compiled gdm/gnome-session/and polkit with systemd support). After doing that and removing consolekit networkmanager will still connect to networks, but it shows the wrong icon in gnome-shell and the advanced options button in network settings is greyed out.
Offline
I re-built polkit w/systemd, I did polkit pkla files, I followed start x at login, I followed autologin to VC w/systemd but the only solution that enabled me to manipulate nm-applet and accordingly networkmanager was to put sudo before the nm-applet command in openbox autostart.
Offline
I gave up and just put consolekit back. My system is working normally again.
Tim
Offline
I re-built polkit w/systemd, I did polkit pkla files, I followed start x at login, I followed autologin to VC w/systemd but the only solution that enabled me to manipulate nm-applet and accordingly networkmanager was to put sudo before the nm-applet command in openbox autostart.
What about mounting/unmounting drives from the file manager?
Offline
@d3xt3r,
I inserted a pkla file incorporating udisk2.
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks2.pkla
-------------------------------------------------------
[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.modify-device
ResultAny=yes
ResultInactive=yes
ResultActive=yesI believe that's right, (I'm at work on my PC not at home). I got the pkla from the polkit wiki. I am able to mount the USB sticks, USB CDReader, sony-ericsson cellphone and read/manipulate them. The eject option is available in pcmanfm but the mount option is greyed out. Regardless, they work. I eject the device when done, (probably wrong). I will confirm if there was more that I did but that problem was quick work compared to networkmanager.
One thing I noticed. I inadvertently reinstalled polkit w/o systemd enabled and my systemctl {reboot & poweroff} would not work. It needed sudo before the commands again. I re-built polkit w/systemd and enabled systemctl polkitd.service and they now work w/o sudo. Alas, not networkmanager.
Check the pcmanfm wiki. That storage pkla seems better. I plan to try tonight. Pcmanfm wiki makes several references to consolekit but none to systemd.
I require gvfs and gvfs-smb to access my ubuntu server and udisks2 requires the same. Pcmanfm requires libfm which is also required by udisks2. So I have both installed and bot have the pkla files indicated in pcmanfm wiki. pcmanfm mount usb drive is still greyed out, network mwnwger still needs sudo before nm-applet in autostart and this is supposed to be simple. i'M ready to reinstall consolekit, but I'll hang on for a few more weeks. If it looks like it will get fixed, then I simply do a wipe and re-do.
Last edited by czubek (2012-09-11 21:50:42)
Offline
@d3xt3r,
I inserted a pkla file incorporating udisk2.
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks2.pkla ------------------------------------------------------- [Storage Permissions] Identity=unix-group:storage Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.modify-device ResultAny=yes ResultInactive=yes ResultActive=yesI believe that's right, (I'm at work on my PC not at home). I got the pkla from the polkit wiki. I am able to mount the USB sticks, USB CDReader, sony-ericsson cellphone and read/manipulate them. The eject option is available in pcmanfm but the mount option is greyed out. Regardless, they work. I eject the device when done, (probably wrong). I will confirm if there was more that I did but that problem was quick work compared to networkmanager.
One thing I noticed. I inadvertently reinstalled polkit w/o systemd enabled and my systemctl {reboot & poweroff} would not work. It needed sudo before the commands again. I re-built polkit w/systemd and enabled systemctl polkitd.service and they now work w/o sudo. Alas, not networkmanager.
Check the pcmanfm wiki. That storage pkla seems better. I plan to try tonight. Pcmanfm wiki makes several references to consolekit but none to systemd.
I require gvfs and gvfs-smb to access my ubuntu server and udisks2 requires the same. Pcmanfm requires libfm which is also required by udisks2. So I have both installed and bot have the pkla files indicated in pcmanfm wiki. pcmanfm mount usb drive is still greyed out, network mwnwger still needs sudo before nm-applet in autostart and this is supposed to be simple. i'M ready to reinstall consolekit, but I'll hang on for a few more weeks. If it looks like it will get fixed, then I simply do a wipe and re-do.
Thanks a ton! I deleted the 55-myconf.pkla I had and created the pkla you mentioned. Then I rebuilt ABS polkit to be on the safe side. I also updated my system, and noticed that there were new updates for NetworkManager. So as a final result, I'm able to connect to networks without a password, and also mount/unmount removables without a password!
Unfortunately, reboot/suspend still needs sudo to work. Yes, I'm a member of the 'power' group. Would be great if the last piece of this puzzle fell into place.. ![]()
Here's my pkla:
/etc/polkit-1/localauthority/org.freedesktop.upower.pkla:
-------------------------------------------------------
[Suspend/hibernate permissions]
Identity=unix-group:power
Action=org.freedesktop.upower.hibernate;org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yesLast edited by d3Xt3r (2012-09-12 09:49:00)
Offline
When you're prompted with the password request, check if org.freedesktop.upower.* is the right action. (may be it is org.freedesktop.UPower.* ).
EDIT: yes, i'm pretty sure it is, so change your .pkla in this way:
[Suspend/hibernate permissions]
Identity=unix-group:power
Action=org.freedesktop.UPower.*;
ResultAny=yes
ResultInactive=yes
ResultActive=yesLast edited by nierro (2012-09-12 10:43:05)
Offline
@d3Xt3r
My level of knowledge of linux pretty much equates to stumbling around in the dark. I would hate for you to do damage to your system based on advise I may provide. Please double-check.
czubek
Offline
When you're prompted with the password request, check if org.freedesktop.upower.* is the right action. (may be it is org.freedesktop.UPower.* ).
EDIT: yes, i'm pretty sure it is, so change your .pkla in this way:[Suspend/hibernate permissions] Identity=unix-group:power Action=org.freedesktop.UPower.*; ResultAny=yes ResultInactive=yes ResultActive=yes
Awesome, thanks for the hint! Actually it was .login1.*, so I changed my pkla like this:
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.login1.pkla
------------------------------------------------------------------------------------
[Suspend/hibernate permissions]
Identity=unix-group:power
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.suspend;org.freedesktop.login1.reboot;org.freedesktop.login1.power-off
ResultAny=yes
ResultInactive=yes
ResultActive=yesAnd now I'm able to suspend/reboot without a password and without sudo too!
Thanks everyone for your help! Life is back to normal again. ![]()
Last edited by d3Xt3r (2012-09-13 08:34:34)
Offline
Thanks so much for this post, I was able to get rid of consolekit rebuild as you said polkit with systemd support and in my system I had to rebuild slim and oblogout without consolekit and with systemd support. In my case I didnt have to change any polkit file maybe because I am using a LM.
Offline