Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#674828: pcmanfm: Gets whole f**king time "Not authorized"-comments without any reason or with reason

12 views
Skip to first unread message

Mikko Koho

unread,
May 27, 2012, 11:20:01 PM5/27/12
to
Package: pcmanfm
Version: 0.9.10-3

Dear Maintainer,
PCManFM gets "Not authorized"-comments in many many times:
Examples:
-When I try to mount USB-stick or memory card, it may be possible or not when
horror "Not.." comes.
-When I unplug USB-stick and has unmounted it correctly, comes..
-Sometimes PCManFM gets totally crazy. Nothing works and reboot helps. Then
same starts again after several minutes-days..
-When I had USB-stick at this computer, it worked. When I tried to use same
stick in another computer, it doesn't understood folders which I have made.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pcmanfm depends on:
ii  libatk1.0-0         2.4.0-2
ii  libc6               2.13-32
ii  libcairo2           1.12.2-2
ii  libfm-gtk-bin       0.1.17-2
ii  libfm-gtk1          0.1.17-2
ii  libfm1              0.1.17-2
ii  libfontconfig1      2.9.0-5
ii  libfreetype6        2.4.9-1
ii  libgdk-pixbuf2.0-0  2.26.1-1
ii  libglib2.0-0        2.32.3-1
ii  libgtk2.0-0         2.24.10-1
ii  libmenu-cache1      0.3.3-1
ii  libpango1.0-0       1.30.0-1
ii  libx11-6            2:1.4.99.901-2

Versions of packages pcmanfm recommends:
ii  gnome-icon-theme  3.4.0-2
ii  gvfs-backends     1.12.3-1
ii  gvfs-fuse         1.12.3-1
ii  lxde-icon-theme   0.5.0-1

pcmanfm suggests no packages.

Mélodie

unread,
Jun 3, 2012, 4:30:02 PM6/3/12
to
Hi,

This does not come from pcmanfm but from your localauthority configuration -- the polkit
program : "Description: Application development toolkit for controlling system-wide
privileges".

For example here in Archlinux, while trying to mount Ubuntu in SpaceFM:
"Error mounting /dev/sda10: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not
authorized to perform operation"

I have to add "org.freedesktop.udisks2.-something" to my 55-myconf.pkla

This one file:
**************
# ls /etc/polkit-1/localauthority/50-local.d/55-maconfig.pkla
/etc/polkit-1/localauthority/50-local.d/55-maconfig.pkla

**************

You will find examples to configure it here:
https://wiki.archlinux.org/index.php/PCManFM

You see this example:
**********************
As root create /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla (or some other
filename of your choosing ending with .pkla) containing:

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no

**********************

When you see something such as "org.freedesktop.udisks.filesystem-mount" you will add the
same with "udisks2" instead of "udisks", and for internal partitions:
"org.freedesktop.udisks.filesystem-mount-system-internal;org.freedesktop.udisks2.filesystem-mount-system-internal"

and so on...
There is also: "org.freedesktop.udisks2.open-device" and the command "pkaction" to list
the existing commands.

Hope this helps, while it is not looking like a bug.

Regards,
Mélodie




--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Johan Haggi

unread,
Jul 2, 2012, 4:10:02 AM7/2/12
to
Sun 3 June 2012, alle 22:26 (GMT+0200), Mélodie ha scritto:
> On Mon, 28 May 2012 06:11:57 +0300
> Mikko Koho <cryog...@gmail.com> wrote:
> > Package: pcmanfm
> > Version: 0.9.10-3
> >
> > Dear Maintainer,
> > PCManFM gets "Not authorized"-comments in many many times:
> > Examples:
> > -When I try to mount USB-stick or memory card, it may be possible or not
> > when [...]

> This does not come from pcmanfm but from your localauthority configuration -- the polkit
> [...]
> I have to add "org.freedesktop.udisks2.-something" to my 55-myconf.pkla
> [...]
> You see this example:
> **********************
> As root create /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla (or some other
> filename of your choosing ending with .pkla) containing:
> [Storage Permissions]
> Identity=unix-group:storage
> Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
> ResultAny=yes
> ResultActive=yes
> ResultInactive=no
> [...]

I have the same problem. On my debian testing (wheezy) I don't have group
storage but group plugdev
I create/etc/polkit-1/localauthority/50-local.d/55-myconf.pkla with:

[Floppy Permissions]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown;org.freedesktop.udisks.filesystem-mount-system-internal
ResultAny=yes
ResultActive=yes
ResultInactive=no
unix-group:storage

and now I can mount USB pens and SD cards.

Now I am this error message at my first login after boot in lxde:

GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user
of subject

but I don't see any new problem.

If I exit from lxde and I do a new login with the same user I don't have
the error message, but I have random error in rendering of character in
lxterminal.

I am sure that the error message is a new problem after the creation of
/etc/polkit-1/localauthority/50-local.d/55-myconf.pkla

I am not sure that the rendering problem is new.

Sorry for my english, I hope that you understand me :-)

My groups:
johan adm disk dialout cdrom floppy audio dip video plugdev staff games users netdev powerdev vdr

My system:
Kernel: 3.2.0-2-686-pae
pcmanfm 0.9.10-3
policykit-1 0.105-1
policykit-1-gnome 0.105-2

a SD card (sdb) and a USB pen (sdc) on my eeepc:
ls -l /dev/sd[bc]
brw-rw---- 1 root floppy 8, 16 lug 2 07:19 /dev/sdb
brw-rw---- 1 root floppy 8, 17 lug 2 07:19 /dev/sdb1
brw-rw---- 1 root floppy 8, 32 lug 2 07:18 /dev/sdc
brw-rw---- 1 root floppy 8, 33 lug 2 07:18 /dev/sdc1
--

Johan Haggi

unread,
Jul 2, 2012, 6:10:01 AM7/2/12
to
Mon 2 July 2012, alle 9:55 (GMT+0200), Johan Haggi ha scritto:
> [...]
> I create/etc/polkit-1/localauthority/50-local.d/55-myconf.pkla with:
>
> [Floppy Permissions]
> Identity=unix-group:plugdev
> Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown;org.freedesktop.udisks.filesystem-mount-system-internal
> ResultAny=yes
> ResultActive=yes
> ResultInactive=no
> unix-group:storage
>
> and now I can mount USB pens and SD cards.
> [...]

Sorry, the last line (unix-group:storage) is a copy&paste error
--
Johan Haggi
signature.asc
0 new messages