You are not logged in.
Hello all,
I recently installed Arch and was setting up PCManFM, but I have run into a few problems. At first, I had no icons, and couldn't see the other internal drives on my system, but thanks to the PCManFM wiki page, I managed to sort those problems out. However, now I am left with the problem where, if I try to open one of the other partitions, PCManFM spawns an error dialog that just says this:
"Not authorized to perform operation"
To summarize what I have done / tried:
I am using SLiM as my login manager, and have the following as my login_cmd
/exec ck-launch-session dbus-launch /bin/zsh -l ~/.xinitrc %session
Installed gamin, polkit-gnome, and gvfs
Created /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla as root, as described in the wiki page (even though it should not be necessary, according to the wiki)
None of the above seem to work. I have also taken a look at these threads, but the users seem to have different problems.
Also, I am able to mount a drive manually using mount
Any help would be greatly appreciated as to why I am receiving this error.
Thanks
Last edited by Nikorasu (2012-10-12 02:01:01)
Offline
Default rules does not allow mounting/umounting of internal devices for security reasons. I would suggest just permamounting in fstab instead.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
While I'm not opposed to setting things up in the fstab, I thought that setting up the .pkla was what overrode the security settings?
Also, one of the internal drives is in a swappable drive bay, so I would rather not set things up in the fstab if possible.
Offline
Slim takes care of consolekit, so delete 'ck-launch-session' from .xinitrc. Otherwise it is started twice and that gives permission problems.
Offline
I should clarify a bit. My .xinitrc looks like this...
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
DEFAULT_SESSION=awesome
case $1 in
awesome|wmii|xmonad) exec $1 ;;
*) exec $DEFAULT_SESSION ;;
esac
And it was my /etc/slim.conf that had the ck-launch-session line. It now looks like this:
login_cmd exec dbus-launch /bin/zsh -l ~/.xinitrc %session
However, the problem remains.
Offline
I found the solution! First I don't speak English very well so forgive me spelling mistakes.
First of all, install polkit-gnome. Next you have to remove the dbus-launch and ck-launch-session option in .xinitrc or slim.conf
slim.conf:
login_cmd exec /bin/zsh -l ~/.xinitrc %session
.xinitrc:
exec openbox-session
If with /bin/zsh don't work, use the default login_cmd ( login_cmd exec /bin/bash -login ~/.xinitrc %session )
And add this to your ~/.config/openbox/autostart or /etc/xdg/openbox/autostart (or autostart.sh in old openbox versions). HAVE TO BE FULL PATH!
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
logout, login and ¡Magic!
Maybe you have to install gvfs to, I don't know because clementine needs it so I can't remove it u.u
Last edited by apikalegusta (2012-09-16 00:03:00)
Offline
Are polkit-gnome-authentication-agent running? Check with 'ps x | grep polkit'
$ ps x | grep polkit
1517 ? Sl 0:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
1977 pts/0 S+ 0:00 grep polkit
I had problem with that when I used Slim, that it wasn't running although it should have been started (I also tried autostart, as apikalegusta suggested), and on one machine I just couldn't make it work, so I finally had to give up and remove Slim. Slim is tricky, strange bugs that only show up on some machines.
Offline
I can confirm, You have to run polkit-gnome-authentication-agent, so add this to .xinitrc or anything else properly to desktop env you are running
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
Offline
I can confirm, You have to run polkit-gnome-authentication-agent, so add this to .xinitrc or anything else properly to desktop env you are running
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
No in .xinitrc, in your autostart config file!!
I forgot, also remove any line of D-Bus in the enviroment file.
Offline
Polkit was not running (even though /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop existed).
The trick was to add the following to my .xinitrc (before starting the awesome session) as suggested.
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
Offline