You are not logged in.
Hi!
I'm using Arch 32-bit, Gnome 3.6 with systemd. Yesterday i did pacman -Syu and it upgraded Gnome.
Since then my external drive is not automounting. When i click on it requires authentication to mount the
drive. There is also duplicate of the same drive when i click on it i get this error: Unable to access location.
When i try to power off or restart it requires also authentication and hibernate and suspend option are missing.
I've been using systemd for a month never had a problem, all this start with Gnome update and logind.
Last edited by decaturguy (2012-11-06 20:38:12)
Offline
are you using some version of polkit from aur?
Give what you have. To someone, it may be better than you dare to think.
Offline
are you using some version of polkit from aur?
no i'm using the one in extra.
pacman -Q polkit
polkit 0.107-4
Offline
I'm having the same issue here : GNOME asks me for my root password each time I want to shutdown the computer or open a USB drive. Also, the Software app (gnome-packagekit) doesn't install or update anything.
Is this could be related to the switch to logind ? According to this wiki page, my session is not valid (I see "Active=no" when I do "loginctl show-session $XDG_SESSION_ID"), but I can't figure out how to fix this. I'm using systemd for a month and I didn't have this issue before upgrading to GNOME 3.6, four days ago.
Last edited by hellpe (2012-11-03 12:39:53)
Offline
Can the problem be GDM?
When i logout and login in Gnome my external drive is mounted and hibernate and suspend
options are back and it doesn't ask for authentication.
I disabled gdm.service rebooted and run startx, and it works.
I removed and reinstalled gdm it didn't help.
Anybody else having this problem?
Offline
Hi,
My session was correctly set to "Active=yes" in "loginctl show-session $XDG_SESSION_ID", but I had the same problem anyway with root authentication needed to mount external drives.
I fixed it by editing the "org.freedesktop.udisks2.filesystem-mount-system" section in /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy with <allow_active>yes</allow_active> (instead of auth_admin_keep by default).
It seems that pkla files in /etc/polkit-1/localauthority have no effect anymore. Running strace on /usr/lib/polkit-1/polkitd shows that it doesn't try to open the files in there. There must be a way to override default policy in /etc/polkit-1, but I haven't managed to get it work since the last upgrade and the problem with editing files in /usr/share/polkit-1/actions/ is that they'll get overriden at the next upgrade.
About the duplicate drive issue, the following discussion might help: https://bbs.archlinux.org/viewtopic.php?id=151856
Cheers
Last edited by gguix (2012-11-03 14:20:04)
Offline
Just found this on the French Arch Linux wiki. Basically, it says that polkit is looking by default if the user session is "implicit" (not remote) and "active" before allowing the user to shutdown ; you can check if it is the case on your system by doing :
pkaction --action-id org.freedesktop.login1.power-off --verbose
I still can't find out why my own session is always "online" but not "active" though.
Offline
Hello.
I have the same problem... I updated system on 2 PC's and problem is the same on both of them... any more ideas how to fix it ? but in my sittuation is asking for USER password NOT root password (don't know why)...
Regards,
siamer
Offline
I solved the issue regarding mount of external drives by creating the file /etc/polkit-1/rules.d/10-mount-system.rules containing:
polkit.addRule (function (a,s) {
if (a.id == 'org.freedesktop.udisks2.filesystem-mount-system' && s.isInGroup('users'))
return polkit.Result.YES;
});
The syntax and subject parameters ('s' variable) which can be used are described in 'man 8 polkit'.
Offline
I solved the issue regarding mount of external drives by creating the file /etc/polkit-1/rules.d/10-mount-system.rules containing:
polkit.addRule (function (a,s) { if (a.id == 'org.freedesktop.udisks2.filesystem-mount-system' && s.isInGroup('users')) return polkit.Result.YES; });
The syntax and subject parameters ('s' variable) which can be used are described in 'man 8 polkit'.
This doesn't work for
Offline
I don't have problem with extension hard drive, only problem is authorization with turning off computer.... any ideas ?
Regards,
siamer
Offline
Here is the solution!
Have rc-local.service run before display-manager.service
Save this to /etc/systemd/system/ rc-local.service
[Unit]
Description=/etc/rc.local Compatibility
Before=display-manager.service
[Service]
Type=oneshot
ExecStart=/etc/rc.local
TimeoutSec=0
StandardInput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Run:
systemctl reenable rc-local.service
reboot
Offline
Are you really still using initscripts? I had the same problem that you describe and solved it simply by deleting /etc/systemd/system/graphical-target-wants/getty@tty1.service
It's save to remove this link, as it doesn't link anywhere now. As of now i would recommend to delete all broken links in /etc/systemd/ , because systemd is (at this point of time) not very good in cleaning up this folder and broken links might lead to strange behavior in your system.
An easy way to find out which links are broken in /etc/systemd, is to use nautilus to look at this folder. It shows you which links are functional and which aren't.
Offline
steffinger your solution is WORKING ! Thanks ! Really helpfull
Offline
The solution provided by decaturguy didn't work for me, and I don't have any broken link in /etc/systemd. Also, my session is still not active.
Offline
Also, my session is still not active.
Well, we may be able to help if you would provide any kind of information regarding your login procedure (display manager, startx, xinit.... ?).
Offline
@hellpe: you say you use systemd for a month now and don't have any broken links in /etc/systemd and its subfolders? have you been using pure systemd or an initscript/ systemd mix? have you removed all the deprecated packages? so many questions... the whole output of your
loginctl show-session $XDG_SESSION_ID
would also be interesting.
Offline
Are you really still using initscripts? I had the same problem that you describe and solved it simply by deleting /etc/systemd/system/graphical-target-wants/getty@tty1.service
It's save to remove this link, as it doesn't link anywhere now. As of now i would recommend to delete all broken links in /etc/systemd/ , because systemd is (at this point of time) not very good in cleaning up this folder and broken links might lead to strange behavior in your system.
An easy way to find out which links are broken in /etc/systemd, is to use nautilus to look at this folder. It shows you which links are functional and which aren't.
Haha you are right! i was 100% sure that i removed initscripts, the stupid thing was plymouth-git depends on initscripts thats
why is still installed on my system. Damn i haven't used Plymouth in a very long time. I just removed both and everything is okay.
Thanks you everyone for help.
Last edited by decaturguy (2012-11-06 20:47:09)
Offline
hellpe wrote:Also, my session is still not active.
Well, we may be able to help if you would provide any kind of information regarding your login procedure (display manager, startx, xinit.... ?).
I'm using Plymouth (from "plymouth-git" in the AUR) and GDM (with autologin). That's all I know about my login procedure. Also, I guess I'm booting with systemd only, since I removed the "initscripts" package, as advised in the wiki.
And here's the full output of "loginctl show-session $XDG_SESSION_ID "
$ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=Wed, 2012-11-07 18:43:09 CET
TimestampMonotonic=20776866
DefaultControlGroup=name=systemd:/user/hellpe/1
VTNr=0
Display=:1
Remote=no
Service=gdm-autologin
Leader=316
Audit=1
Type=x11
Class=user
Active=no
State=online
KillProcesses=no
IdleHint=no
IdleSinceHint=1352317379558479
IdleSinceHintMonotonic=7210867336
Name=hellpe
Offline
@Hellpe
run this command and post the result.
systemctl list-unit-files |grep enabled
post whats inside: /etc/systemd/system + whats inside each subfolders.
Offline
decaturguy, there you are :
$ systemctl list-unit-files |grep enabled
dbus-org.freedesktop.NetworkManager.service enabled
display-manager.service enabled
gdm-plymouth.service enabled
getty@.service enabled
NetworkManager.service enabled
remote-fs.target enabled
$ ls -lR /etc/systemd/system
/etc/systemd/system:
total 16
lrwxrwxrwx 1 root root 46 7 nov. 17:43 dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 44 7 sept. 16:16 display-manager.service -> /usr/lib/systemd/system/gdm-plymouth.service
drwxr-xr-x 2 root root 4096 16 juil. 15:48 getty.target.wants
drwxr-xr-x 2 root root 4096 25 oct. 02:37 local-fs.target.wants
drwxr-xr-x 2 root root 4096 7 nov. 17:43 multi-user.target.wants
drwxr-xr-x 2 root root 4096 25 oct. 02:37 sysinit.target.wants
/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 38 16 juil. 15:48 getty@tty1.service -> /usr/lib/systemd/system/getty@.service
/etc/systemd/system/local-fs.target.wants:
total 0
/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 46 7 nov. 17:43 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 40 25 oct. 02:37 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
/etc/systemd/system/sysinit.target.wants:
total 0
Offline
You are using gdm-plymouth which I assume hasn't been updated to support logind.
Offline
Actually, I don't have gdm-plymouth installed on my system, only plymouth-git from AUR which does not depends on gdm-plymouth.
I'm gonna try something else : I just noticed some conversation has taken place on the plymouth AUR page about some systemd issues. I'll switch from plymouth-git to plymouth to see if there is any difference. Cannot do that right now, 'cause the freedesktop servers seem to be down. I'll keep you informed.
Last edited by hellpe (2012-11-08 00:49:46)
Offline
How about try to disable plymouth-gdm.service and enable gdm.service
Offline
How about try to disable plymouth-gdm.service and enable gdm.service
I did just that after switching from plymouth-git to plymouth, and that fixed my problem : now I can reboot, suspend, mount removable drives and use Gnome Packagekit without entering my password.
Thanks a lot for your help !
Last edited by hellpe (2012-11-08 11:58:05)
Offline