You are not logged in.

#1 2012-04-24 10:44:54

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Pcmanfm not authorized to mount internal devices

Hi
I did upgrade my system yesterday. It was big upgrade, so i don't remember all of the packages.

To yesterday everything was good, devices was mounting by pcmanfm. Now if I try mount it as normal user I get this message :

Not authorized to perform operation

If I run pcmanfm as root, I get this message(in terminal) :

(pcmanfm:2104): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

I repeat : to yesterday everything was good, so I have configured policykit and xinitrc.


I use openbox.

Offline

#2 2012-04-24 13:53:53

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

OK, Its probably new package udisks2 fault. I can't uninstall this and I don't know what doing.

It's my org.freedesktop.udisks.policy file :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
  <vendor>The udisks Project</vendor>
  <vendor_url>http://udisks.freedesktop.org/</vendor_url>
  <icon_name>drive-removable-media</icon_name>

  <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>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-mount-system-internal">
    <description>Mount a system-internal device</description>
    <description xml:lang="da">Montér en intern 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>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-check">
    <description>Check file system on a device</description>
    <description xml:lang="da">Check fil system for en enhed</description>
    <message>Authentication is required to check the file system on the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at checke fil systemet på en enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-check-system-internal">
    <description>Check file system of a system-internal device</description>
    <description xml:lang="da">Check fil system for en intern enhed</description>
    <message>Authentication is required to check the file system on the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at checke fil systemet på en enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-unmount-others">
    <description>Unmount a device mounted by another user</description>
    <description xml:lang="da">Afmontér en enhed monteret af en anden bruger</description>
    <message>Authentication is required to unmount devices mounted by another user</message>
    <message xml:lang="da">Autorisering er påkrævet for at afmontere enheder monteret af en anden bruger</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-lsof">
    <description>List open files</description>
    <description xml:lang="da">Vis åbne filer</description>
    <message>Authentication is required to list open files on a mounted file system</message>
    <message xml:lang="da">Autorisering er påkrævet for at liste åbne filer</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-lsof-system-internal">
    <description>List open files on a system-internal device</description>
    <description xml:lang="da">Vis åbne filer på en intern enhed</description>
    <message>Authentication is required to list open files on a mounted file system</message>
    <message xml:lang="da">Autorisering er påkrævet for at liste åbne filer</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-eject">
    <description>Eject media from a device</description>
    <message>Authentication is required to eject media from the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at skubbe medie ud af en enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-detach">
    <description>Detach a drive</description>
    <message>Authentication is required to detach the drive</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.change">
    <description>Modify a device</description>
    <description xml:lang="da">Modificér en enhed</description>
    <message>Authentication is required to modify the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at ændre en enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.change-system-internal">
    <description>Modify a system-internal device</description>
    <description xml:lang="da">Modificér en intern enhed</description>
    <message>Authentication is required to modify the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at ændre en enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-ata-smart-refresh">
    <description>Refresh ATA SMART data</description>
    <description xml:lang="da">Læs ATA SMART data</description>
    <message>Authentication is required to refresh ATA SMART data</message>
    <message xml:lang="da">Autorisering er påkrævet for at læse ATA SMART data</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-ata-smart-selftest">
    <description>Run ATA SMART Self Tests</description>
    <description xml:lang="da">Kør ATA SMART selv checks</description>
    <message>Authentication is required to run ATA SMART self tests</message>
    <message xml:lang="da">Autorisering er påkrævet for at køre ATA SMART selvcheck</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-ata-smart-retrieve-historical-data">
    <description>Retrieve historical ATA SMART data</description>
    <description xml:lang="da">Hent historisk ATA SMART data</description>
    <message>Authentication is required to retrieve historical ATA SMART data</message>
    <message xml:lang="da">Autorisering er påkrævet for at hente historisk ATA SMART data</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.luks-unlock">
    <description>Unlock an encrypted device</description>
    <description xml:lang="da">Åbn en krypteret enhed</description>
    <message>Authentication is required to unlock an encrypted device</message>
    <message xml:lang="da">Autorisering er påkrævet for at åbne en krypteret enhed</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.luks-lock-others">
    <description>Lock an encrypted device unlocked by another user</description>
    <description xml:lang="da">Lås en krypteret enhed åbnet af en anden bruger</description>
    <message>Authentication is required to lock an encrypted device unlocked by another user</message>
    <message xml:lang="da">Autorisering er påkrævet for at låse en krypteret enhed åbnet af en anden bruger</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.linux-md">
    <description>Configure Linux Software RAID</description>
    <description xml:lang="da">Konfigurér Software RAID</description>
    <message>Authentication is required to configure Linux Software RAID devices</message>
    <message xml:lang="da">Autorisering er påkrævet for at konfigurere RAID enheder</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.linux-lvm2">
    <description>Configure Linux LVM2</description>
    <message>Authentication is required to configure Linux LVM2</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.cancel-job-others">
    <description>Cancel a job initiated by another user</description>
    <description xml:lang="da">Afbryd job påbegyndt af en anden bruger</description>
    <message>Authentication is required to cancel a job initiated by another user</message>
    <message xml:lang="da">Autorisering er påkrævet for at afbryde et job påbegyndt af en anden bruger</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.inhibit-polling">
    <description>Inhibit media detection</description>
    <description xml:lang="da">Undertryk medie detektion</description>
    <message>Authentication is required to inhibit media detection</message>
    <message xml:lang="da">Autorisering er påkrævet for at undertrykke medie detektion</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.drive-set-spindown">
    <description>Set drive spindown timeout</description>
    <message>Authentication is required to configure drive spindown timeout</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
</policyconfig>

and it's my org.freedesktop.udisks2.policy


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
  <vendor>The udisks Project</vendor>
  <vendor_url>http://udisks.freedesktop.org/</vendor_url>
  <icon_name>drive-removable-media</icon_name>

  
  <action id="org.freedesktop.udisks2.filesystem-mount">
    <description>Mount a filesystem</description>
    <message>Authentication is required to mount the filesystem</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.filesystem-mount-system">
    <description>Mount a filesystem on a system device</description>
    <message>Authentication is required to mount the filesystem</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.filesystem-fstab">
    <description>Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option</description>
    <message>Authentication is required to mount/unmount the filesystem</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.filesystem-unmount-others">
    <description>Unmount a device mounted by another user</description>
    <message>Authentication is required to unmount a filesystem mounted by another user</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.encrypted-unlock">
    <description>Unlock an encrypted device</description>
    <message>Authentication is required to unlock an encrypted device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.encrypted-unlock-system">
    <description>Unlock an encrypted system device</description>
    <message>Authentication is required to unlock an encrypted device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.encrypted-unlock-crypttab">
    <description>Unlock an encrypted device specified in the crypttab file with the x-udisks-auth option</description>
    <message>Authentication is required to unlock an encrypted device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.encrypted-lock-others">
    <description>Lock an encrypted device unlocked by another user</description>
    <message>Authentication is required to lock an encrypted device unlocked by another user</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.encrypted-change-passphrase">
    <description>Change passphrase for an encrypted device</description>
    <message>Authentication is required to change the passphrase for an encrypted device</message>
    <message xml:lang="da">Autorisering er påkrævet for at ændre kode-ordet for en krypteret enhed</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.encrypted-change-passphrase-system">
    <description>Change passphrase for an encrypted device</description>
    <message>Authentication is required to change the passphrase for an encrypted device</message>
    <message xml:lang="da">Autorisering er påkrævet for at ændre kode-ordet for en krypteret enhed</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.loop-setup">
    <description>Manage loop devices</description>
    <message>Authentication is required to set up a loop device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.loop-delete-others">
    <description>Manage loop devices</description>
    <message>Authentication is required to delete a loop device set up by another user</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.manage-swapspace">
    <description>Manage swapspace</description>
    <message>Authentication is required to manage swapspace</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.modify-device">
    <description>Modify a device</description>
    <message>Authentication is required to modify a device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.modify-device-system">
    <description>Modify a system device</description>
    <message>Authentication is required to modify a device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.open-device">
    <description>Open a device</description>
    <message>Authentication is required to open a device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks2.open-device-system">
    <description>Open a system device</description>
    <message>Authentication is required to open a device</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.modify-system-configuration">
    <description>Modify system-wide configuration</description>
    <message>Authentication is required to modify system-wide configuration</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.read-system-configuration-secrets">
    <description>Modify system-wide configuration</description>
    <message>Authentication is required to retrieve secrets from system-wide configuration</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.ata-smart-update">
    <description>Update SMART data</description>
    <message>Authentication is required to update SMART data</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  
  <action id="org.freedesktop.udisks2.ata-smart-selftest">
    <description>Run SMART self-test</description>
    <message>Authentication is required to run a SMART self-test</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

</policyconfig>

Offline

#3 2012-04-25 15:35:59

yui
Member
Registered: 2006-10-19
Posts: 4

Re: Pcmanfm not authorized to mount internal devices

Could you post your .xinitrc ?

Offline

#4 2012-04-25 15:54:42

cidtux
Member
From: Jakarta
Registered: 2012-04-25
Posts: 3
Website

Re: Pcmanfm not authorized to mount internal devices

Hi I got this problem too.

Try to downgrade gvfs & remove udisks2.

This solve my problem.

Offline

#5 2012-04-25 17:31:49

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

I was downgrading my gvfs, but it isn't working (i dont know why). How version do you have?

my xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
exec ck-launch-session dbus-launch bash -c "udiskie & openbox-session" 


Now pcmanfm says only "not authorized", and i can't fix them.

Offline

#6 2012-04-25 17:39:38

yui
Member
Registered: 2006-10-19
Posts: 4

Re: Pcmanfm not authorized to mount internal devices

Try removing "dbus-launch". Worked for me.

Offline

#7 2012-04-25 17:43:40

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

Unfortunately it didn't help, on the contrary it damaged more.

Offline

#8 2012-04-26 00:33:49

cidtux
Member
From: Jakarta
Registered: 2012-04-25
Posts: 3
Website

Re: Pcmanfm not authorized to mount internal devices

xorgx3 wrote:

I was downgrading my gvfs, but it isn't working (i dont know why). How version do you have?

my xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
exec ck-launch-session dbus-launch bash -c "udiskie & openbox-session" 


Now pcmanfm says only "not authorized", and i can't fix them.

gvfs-1.10.1-3-i686.pkg.tar.xz & remove udisks2 too
#pacman -R udisks2

my xinitrc
exec ck-launch-session dbus-launch icewm-session

Last edited by cidtux (2012-04-26 01:02:18)

Offline

#9 2012-04-26 05:49:29

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

I don't know whats happened, but I have the same, but me not working...


EDIT:
Ok, I was able to fix them smile

Thanks all.

Last edited by xorgx3 (2012-04-26 08:09:27)

Offline

#10 2012-04-26 15:18:05

ronnylov
Member
Registered: 2010-12-21
Posts: 55

Re: Pcmanfm not authorized to mount internal devices

xorgx3 wrote:

I don't know whats happened, but I have the same, but me not working...


EDIT:
Ok, I was able to fix them smile

Thanks all.

How did you fix the problem?
I have the same issue with Thunar in XFCE.

Offline

#11 2012-04-26 18:27:56

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

I removed gvfs and udisks2 and udisks and udiskie completely.

Later I was intsatlled gvfs 1.10.1-3 and udisks again.

Later I did this https://wiki.archlinux.org/index.php/Ud … ormal_user and this https://wiki.archlinux.org/index.php/PC … ormal_user

Next I changed  /usr/share/polkit-1/actions/org.freedesktop.udisks.policy file and replaced "auth_admin_keep" with "yes" for internal devices.

Next I changed /etc/slim.conf line :

login_cmd           exec ck-launch-session /bin/bash -login ~/.xinitrc %session

Next I changed ~/.xinitrc and it is only :

#!/bin/sh
exec dbus-launch openbox-session

Next I logout and log in again.

Now everything works, even cd automount, external devices automount etc.

Offline

#12 2012-04-26 22:25:04

xsmile
Member
Registered: 2012-03-31
Posts: 18

Re: Pcmanfm not authorized to mount internal devices

I solved it by modifying this file:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla

You can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.

Basically you need to replace 'udisks' with 'udisks2':

Last edited by xsmile (2012-05-20 12:43:49)

Offline

#13 2012-04-27 19:35:39

silverzhao
Member
Registered: 2011-07-05
Posts: 33

Re: Pcmanfm not authorized to mount internal devices

xsmile wrote:

I solved it by modifying this file:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla

You can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.

Basically you need to replace 'udisks' with 'udisks2':

[Mount a system-internal device]
Identity=*
Action=org.freedesktop.udisks2.*
ResultActive=yes

This should fix all mounting problems.

Great! That just solves my problem. Thanks!

Last edited by silverzhao (2012-04-27 19:37:51)


What you are you do not see, what you see is your shadow.

Offline

#14 2012-04-29 16:04:58

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 252

Re: Pcmanfm not authorized to mount internal devices

thank you for this, sovled my problems with thunar too... let me say that who simply tought to introduce such a change in the source code, In my opinion doesn't seem to be very smart..

Offline

#15 2012-05-10 14:27:08

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Pcmanfm not authorized to mount internal devices

Problem returned to me. Probably after kernel upgrade. Anybody help?

Last edited by xorgx3 (2012-05-10 14:27:33)

Offline

#16 2012-05-11 12:37:25

gabrielrcp
Member
Registered: 2012-05-11
Posts: 3

Re: Pcmanfm not authorized to mount internal devices

xorgx3 wrote:

Problem returned to me. Probably after kernel upgrade. Anybody help?

It also returned to me, doing this fixed it here:

https://bbs.archlinux.org/viewtopic.php … 2#p1098972

Offline

#17 2012-05-11 13:22:35

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 3,274

Re: Pcmanfm not authorized to mount internal devices

xsmile wrote:

I solved it by modifying this file:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla

You can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.

Basically you need to replace 'udisks' with 'udisks2':

[Mount a system-internal device]
Identity=*
Action=org.freedesktop.udisks2.*
ResultActive=yes

This should fix all mounting problems.

That is too broad and will allow things like org.freedesktop.udisks2.modify-device-system which is what is required to delete partitions, it can be dangerous if some program is not working properly and authentication would serve as a last line of defense, to make it worse you grant everyone with an active session that privilege.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#18 2012-05-20 01:37:24

bruno321
Member
From: Montevideo, Uruguay
Registered: 2010-03-05
Posts: 86

Re: Pcmanfm not authorized to mount internal devices

gabrielrcp wrote:
xorgx3 wrote:

Problem returned to me. Probably after kernel upgrade. Anybody help?

It also returned to me, doing this fixed it here:

https://bbs.archlinux.org/viewtopic.php … 2#p1098972

This doesn't work for me. That is, if I start with exec startfluxbox, I still have the same problem.

And I don't want to apply xsmile's fix which R00KIE points out as dangerous... How can I solve this?

FWIW, my problem is with spacefm, not pcmanfm.

Last edited by bruno321 (2012-05-20 01:54:23)

Offline

#19 2012-05-20 12:51:18

xsmile
Member
Registered: 2012-03-31
Posts: 18

Re: Pcmanfm not authorized to mount internal devices

@R00KIE: You are absolutely right, I edited my previous post regarding this.

@bruno321: This would be a more secure approach which limits the access to udev2 to the mounting functions, as proposed in the wiki. Additionally the user needs to be member of the 'wheel' group.

[Mount a system-internal device]
Identity=unix-group:wheel
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultActive=yes

Offline

#20 2012-05-20 16:47:41

bruno321
Member
From: Montevideo, Uruguay
Registered: 2010-03-05
Posts: 86

Re: Pcmanfm not authorized to mount internal devices

@xsmile: Ok, that fixed the "not authorized" problem, but it still prompts me for a password (which is quite inconvenient if I want automounting wink) I don't have the linux skills to tell if this is still a udisks problem or a spaceFM issue. Here are the messages:

$ spacefm

Automount: /usr/bin/udisksctl mount -b /dev/sdd1 -o 'noexec,nosuid,noatime'
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ===
Authentication is required to mount /dev/sdd1
Authenticating as: John Doe,,,4810520,099105413 (bruno321)
Password: 
==== AUTHENTICATION COMPLETE === 

Offline

#21 2012-05-20 18:23:50

xsmile
Member
Registered: 2012-03-31
Posts: 18

Re: Pcmanfm not authorized to mount internal devices

Try using this Action line:
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system

Offline

#22 2012-05-20 20:02:17

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 3,274

Re: Pcmanfm not authorized to mount internal devices

I have this:

[Override udisks2 filesystem-mount-system rule]
Identity=unix-user:myusername
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultAny=auth_admin
ResultInactive=auth_admin
ResultActive=yes

This will allow mounting filesystems on devices that are recognized/marked as internal and on internal disks which have not been mounted in fstab, for some systems this may have security implications, but since the user allowed to do so is only one, and on _my_ system I always have all partitions mounted this is not a problem.
I have only overridden the part that matters for me, which is the "ResultActive", the others are exactly the same as the default permissions as I don't know what will happen if they are omitted here (probably the result will be no instead of auth_admin).


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB