You are not logged in.
Pages: 1
Hello
I'm facing this problem for the first time, but can't tell if it came after an update or an unexpected reboot (light went out).
I'm using latest kde (4.9.2?), and the latest kernel,
Linux gantz 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/LinuxWhen I plug any usb device, kde ask me what to do. When trying to mount it, either from the kde "mount" plasmoid or from dolphin, I get a "Not authorized" error. Mounting via cli with sudo works fine.
After doing some research, I found that I need to be in the storage group in order to be able to mount, so I checked, and I was already on the storage group. Next.
More research sent me to lots of pages talking abour .xinitrc, wich doesn't exists (on my home, at least). Also tons of pages where talking about somethin like "exec ck-launch-session dbus-launch session-manager" (I login via kdm), but the ck-launch-session is not found on my computer either.
So i'm stucked right now, and don't know how to proceed, any clues? Thanks
Last edited by mzneverdies (2012-11-10 13:10:09)
Offline
mount /dev/sdX# /media/imadethisdirsudo mount /dev/sdX# /media/imadethisdirmaybe start here.
(replace X and #
)
Last edited by ackt1c (2012-11-07 09:45:52)
Offline
ck-launch-session was part of consolekit, which has been replaced by (part of) systemd (see the news). If you haven't switched to systemd, I would do that first (again: see news, which links to wiki). You should no longer need to be in the storage group (and some remark somewhere said it might even cause problems).
.xinitrc is mainly used by people who use a light-weight login manager (like slim) or none at all. If you have systemd configured correctly (and removed yourself from groups like audio/storage), with the kdm service enabled, it should work.
Last edited by Raynman (2012-11-07 09:47:59)
Offline
Thanks for the replies.
@ackt1c:
As said, "sudo mounting" works, without sudo I don't have rights (actually, I din't try to mount anything on /media, but
$mount /dev/sdX# /home/user/imadethisdirfails because of permissions (complains about me not beeing root).
My others sdX defined on the fstab are mounted ok on boot time, my probles comes when I plug an usb device (have not tried yet with cds/dvds).
@Raynman
I think I'm using systemd (fresh installation back on september), but i don't know how to check it, will take a look at the wiki when i've got the time.
As soon as I get home I'll remove myself from the storage group, and update this thread :) (in about, 10hours, I'm a hard worker! -not really)
Last edited by mzneverdies (2012-11-07 09:54:58)
Offline
Many file managers offer auto mounting (nautilus, spacefm, pcmanfm, thunar) and can be configured to do so, sorry I've never done it, and can't help you there. I sudo mount every restart (once in a blue moon for a kernel update) and for me as long as a user has access to the device without permission failure, I'm fine mounting myself, but I hope to see a auto mount configuration example for that day when I consider the same problem worthwhile. have fun!
[edit]
https://bbs.archlinux.org/viewtopic.php?id=152072
check the dustbin.
Last edited by ackt1c (2012-11-07 10:34:51)
Offline
Solved, it was a polkit issue, don't know what caused it, since i didn't touch any config file/dialog.
after changing allow any to "yes" in this section
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<description xml:lang="da">Montér en enhed</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>on file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy, everything came back to normal, and i'm able to mount usb devices.
pd @Raynman: removing myself from the storage group did not change anything.
Last edited by mzneverdies (2012-11-10 13:10:39)
Offline
Solved, it was a polkit issue, don't know what caused it, since i didn't touch any config file/dialog.
after changing allow any to "yes" in this section
<action id="org.freedesktop.udisks.filesystem-mount"> <description>Mount a device</description> <description xml:lang="da">Montér en enhed</description> <message>Authentication is required to mount the device</message> <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message> <defaults> <allow_any>yes</allow_any> <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>on file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy, everything came back to normal, and i'm able to mount usb devices.
pd @Raynman: removing myself from the storage group did not change anything.
that's not a fix, it's a crappy workaround. You are not supposed to touch these files, they will be overwritten on an upgrade. My guess is that you are simply not using systemd and therefore you are not in an active logind session. You have to boot with systemd, as mentioned in the news. Everything should then just work out of the box.
Offline
that's not a fix, it's a crappy workaround. You are not supposed to touch these files, they will be overwritten on an upgrade. My guess is that you are simply not using systemd and therefore you are not in an active logind session. You have to boot with systemd, as mentioned in the news. Everything should then just work out of the box.
hm, you may be right, so I made a few changes and now I think i'm finally running a pure systemd arch.
Thanks for every suggestion ![]()
Offline
Pages: 1