Bug#650299: udisks: KDE cannot mount USB disks

2012-07-25 Thread Thomas 'PointedEars' Lahn
Package: udisks
Version: 1.0.1+git20100614-3

The problem and the (temporary) solution that has been used by the bug
reporter is explained here:

http://www.suurmeijer.net/index.php?option=com_contentview=articleid=65:solved-orgfreedesktopudiskserrorpermissiondenied-not-authorizedcatid=38:debianItemid=63

I had this problem reproducibly (before I changed the file as described, for
the first time; please find it attached) when I returned from save-to-disk
state (hibernation, which was triggered by KDE 4.6.5's PowerDevil, in the
office) and reconnected the external USB disk to the USB port (at home).

ISTM that *at least* when returning from hibernation, the KDE session needs
to be renewed so that it is considered active.  IOW, this bug report should
probably be transferred to another package, but I am not sure which one.

-- 
Regards,

PointedEars
?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
  vendorThe udisks Project/vendor
  vendor_urlhttp://udisks.freedesktop.org//vendor_url
  icon_namedrive-removable-media/icon_name

  action id=org.freedesktop.udisks.filesystem-mount
descriptionMount a device/description
description xml:lang=daMontér en enhed/description
description xml:lang=deGerät einhängen/description
messageAuthentication is required to mount the device/message
message xml:lang=daAutorisering er påkrævet for at montere et fil system/message
message xml:lang=deZugriffsrechte werden benötigt um das Gerät einzuhängen/message
defaults
  !--allow_anyno/allow_any--
  allow_anyyes/allow_any
  !--allow_anyno/allow_any--
  allow_inactiveyes/allow_inactive
  allow_activeyes/allow_active
/defaults
  /action

  action id=org.freedesktop.udisks.filesystem-mount-system-internal
descriptionMount a system-internal device/description
description xml:lang=daMontér en intern enhed/description
description xml:lang=deEingebautes Gerät einhängen/description
messageAuthentication is required to mount the device/message
message xml:lang=daAutorisering er påkrævet for at montere et fil system/message
message xml:lang=deZugriffsrechte werden benötigt um das Gerät einzuhängen/message
defaults
  allow_anyno/allow_any
  allow_inactiveno/allow_inactive
  allow_activeauth_admin_keep/allow_active
/defaults
  /action

  action id=org.freedesktop.udisks.filesystem-check
descriptionCheck file system on a device/description
description xml:lang=daCheck fil system for en enhed/description
description xml:lang=deDateisystem auf einem Gerät prüfen/description
messageAuthentication is required to check the file system on the device/message
message xml:lang=daAutorisering er påkrævet for at checke fil systemet på en enhed/message
message xml:lang=deZugriffsrechte werden benötigt um das Dateisystem auf dem Gerät zu prüfen/message
defaults
  allow_anyno/allow_any
  allow_inactiveno/allow_inactive
  allow_activeyes/allow_active
/defaults
  /action

  action id=org.freedesktop.udisks.filesystem-check-system-internal
descriptionCheck file system of a system-internal device/description
description xml:lang=daCheck fil system for en intern enhed/description
description xml:lang=deDateisystem auf einem eingebauten Gerät prüfen/description
messageAuthentication is required to check the file system on the device/message
message xml:lang=daAutorisering er påkrævet for at checke fil systemet på en enhed/message
message xml:lang=deZugriffsrechte werden benötigt um das Dateisystem auf dem Gerät zu prüfen/message
defaults
  allow_anyno/allow_any
  allow_inactiveno/allow_inactive
  allow_activeauth_admin_keep/allow_active
/defaults
  /action

  action id=org.freedesktop.udisks.filesystem-unmount-others
descriptionUnmount a device mounted by another user/description
description xml:lang=daAfmontér en enhed monteret af en anden bruger/description
description xml:lang=deGerät eines anderen Benutzers aushängen/description
messageAuthentication is required to unmount devices mounted by another user/message
message xml:lang=daAutorisering er påkrævet for at afmontere enheder monteret af en anden bruger/message
message xml:lang=deZugriffsrechte werden benötigt um ein Gerät auszuhängen, das ein anderer Benutzer eingehängt hat/message
defaults
  allow_anyno/allow_any
  allow_inactiveno/allow_inactive
  allow_activeauth_admin/allow_active
/defaults
  /action

  action id=org.freedesktop.udisks.filesystem-lsof
descriptionList open files/description
description xml:lang=daVis åbne filer/description
description xml:lang=deOffene Dateien anzeigen/description
messageAuthentication is required to list open files on a mounted file 

Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Jeffrey G Thomas
The error message in KDE is exactly this, where 'employees' is the name of this 
harddrive (as set when formatting the drive):


Could not mount the following device: employees
org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized




 Could you run udisks --mount /path/to/device as regular user?
#
#jthomas@jthomas:14:59:~$  dmesg
[108868.736394]  sdd: sdd1
[108868.741565] sd 14:0:0:0: [sdd] Asking for cache data failed
[108868.741577] sd 14:0:0:0: [sdd] Assuming drive cache: write through
[108868.741586] sd 14:0:0:0: [sdd] Attached SCSI disk
#
#jthomas@jthomas:14:59:~$  udisks --mount /dev/sdd1
Mount failed: Not Authorized



 The output of udisks --dump might be helpful too.
#
#jthomas@jthomas:15:00:~$ udisks --dump

Showing information for /org/freedesktop/UDisks/devices/loop0
  native-path: /sys/devices/virtual/block/loop0
  device:  7:0
  device-file: /dev/loop0
presentation:  /dev/loop0
  detected at: Mon 28 Nov 2011 08:50:11 AM CST
  system internal: 1
  removable:   0
  has media:   1 (detected at Mon 28 Nov 2011 08:50:11 AM CST)
detects change:0
detection by polling:  0
detection inhibitable: 0
detection inhibited:   0
  is read only:1
  is mounted:  1
  mount paths: /home/jthomas/Firefox/firefox
  mounted by uid:  0
  presentation hide:   0
  presentation nopolicy:   1
  presentation name:   
  presentation icon:   
  automount hint:  
  size:15941632
  block size:  512
  job underway:no
  usage:   filesystem
  type:squashfs
  version: 1024.0
  uuid:
  label:   
  loop:
filename:  /home/jthomas/.Firefox6.sqfs
  drive:
vendor:Linux
model: Loop: .Firefox6.sqfs
revision:  
serial:
WWN:   
detachable:0
can spindown:  0
rotational media:  Yes, unknown rate
write-cache:   unknown
ejectable: 0
adapter:   Unknown
ports:
similar devices:
media: 
  compat: 
interface: (unknown)
if speed:  (unknown)
ATA SMART: not available


Showing information for /org/freedesktop/UDisks/devices/sda
  native-path: 
/sys/devices/pci:00/:00:11.0/host2/target2:0:0/2:0:0:0/block/sda
  device:  8:0
  device-file: /dev/sda
presentation:  /dev/sda
by-id: /dev/disk/by-id/ata-ST3250620NS_9QE81MR6
by-id: /dev/disk/by-id/scsi-SATA_ST3250620NS_9QE81MR6
by-id: /dev/disk/by-id/wwn-0x5000c5000d4d1e1d
by-path:   /dev/disk/by-path/pci-:00:11.0-scsi-0:0:0:0
  detected at: Mon 28 Nov 2011 08:50:11 AM CST
  system internal: 1
  removable:   0
  has media:   1 (detected at Mon 28 Nov 2011 08:50:11 AM CST)
detects change:0
detection by polling:  0
detection inhibitable: 0
detection inhibited:   0
  is read only:0
  is mounted:  0
  mount paths: 
  mounted by uid:  0
  presentation hide:   0
  presentation nopolicy:   0
  presentation name:   
  presentation icon:   
  automount hint:  
  size:2500
  block size:  512
  job underway:no
  usage:   
  type:
  version: 
  uuid:
  label:   
  partition table:
scheme:mbr
count: 3
  drive:
vendor:ATA
model: ST3250620NS
revision:  3BSK
serial:9QE81MR6
WWN:   5000c5000d4d1e1d
detachable:0
can spindown:  1
rotational media:  Yes, unknown rate
write-cache:   enabled
ejectable: 0
adapter:   
/org/freedesktop/UDisks/adapters/_3a00_3a11_2e0
ports:
  /org/freedesktop/UDisks/adapters/_3a00_3a11_2e0/host2
similar devices:
media: 
  compat: 
 

Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Michael Biebl
On 29.11.2011 22:02, Jeffrey G Thomas wrote:
 The error message in KDE is exactly this, where 'employees' is the name of 
 this harddrive (as set when formatting the drive):
 
 
 Could not mount the following device: employees
 org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
 

Is this drive/partition listed in /etc/fstab?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Jeffrey G Thomas
  Could not mount the following device: employees
  org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
  
 
 Is this drive/partition listed in /etc/fstab?

No, this isn't in fstab at all.  This is a USB drive; more accurately, its a 
SATA drive in a USB3 dock.  But I get the same errors with normal USB thumb 
drives as well, and the USB3 dock didn't have any issues a week ago.



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



Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Michael Biebl
On 29.11.2011 22:28, Jeffrey G Thomas wrote:
 Could not mount the following device: employees
 org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
 

 Is this drive/partition listed in /etc/fstab?
 
 No, this isn't in fstab at all.  This is a USB drive; more accurately, its a 
 SATA drive in a USB3 dock.  But I get the same errors with normal USB thumb 
 drives as well, and the USB3 dock didn't have any issues a week ago.

I'm running out of ideas what could be wrong.

Doe PolicyKit in general work? What happens if you run pkexec /bin/true?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Jeffrey G Thomas
 Doe PolicyKit in general work? What happens if you run pkexec /bin/true?
I believe it works but I am unsure where it comes into play in my daily 
routine; I do a lot on the command line when it comes to updates, networking 
tasks, etc.

#jthomas@jthomas:16:11:~$ pkexec /bin/true
#
#jthomas@jthomas:16:11:~$ 

That ^^ pops up a box asking for root's password; when entered the box goes 
away.

 I'm running out of ideas what could be wrong.
On my home computer, which is about the same Sid but not quite as updated, the 
file at
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
has one of the two changes in it (allow_active), and I didn't make any 
PolicyKit changes on that machine:

  action id=org.freedesktop.udisks.filesystem-mount
descriptionMount a device/description
description xml:lang=daMontér en enhed/description
description xml:lang=deGerät einhängen/description
messageAuthentication is required to mount the device/message
message xml:lang=daAutorisering er påkrævet for at montere et fil 
system/message
message xml:lang=deZugriffsrechte werden benötigt um das Gerät 
einzuhängen/message
defaults
  allow_anyno/allow_any
  allow_inactiveno/allow_inactive
  allow_activeyes/allow_active
/defaults
  /action



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



Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Michael Biebl
On 29.11.2011 23:16, Jeffrey G Thomas wrote:
 Doe PolicyKit in general work? What happens if you run pkexec /bin/true?
 I believe it works but I am unsure where it comes into play in my daily 
 routine; I do a lot on the command line when it comes to updates, networking 
 tasks, etc.
 
 #jthomas@jthomas:16:11:~$ pkexec /bin/true
 #
 #jthomas@jthomas:16:11:~$ 
 
 That ^^ pops up a box asking for root's password; when entered the box goes 
 away.
 
 I'm running out of ideas what could be wrong.
 On my home computer, which is about the same Sid but not quite as updated, 
 the file at
 /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
 has one of the two changes in it (allow_active), and I didn't make any 
 PolicyKit changes on that machine:
 
   action id=org.freedesktop.udisks.filesystem-mount
 descriptionMount a device/description
 description xml:lang=daMontér en enhed/description
 description xml:lang=deGerät einhängen/description
 messageAuthentication is required to mount the device/message
 message xml:lang=daAutorisering er påkrævet for at montere et fil 
 system/message
 message xml:lang=deZugriffsrechte werden benötigt um das Gerät 
 einzuhängen/message
 defaults
   allow_anyno/allow_any
   allow_inactiveno/allow_inactive
   allow_activeyes/allow_active
 /defaults
   /action
 

You filed the bug against 1.0.4-2 which should definitely have
allow_activeyes/allow_active in there. Could you attach the complete
file please.

Could you also check with debsums udisks, if this file was modified.

A apt-get install --reinstall should bring the original file back.

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: Bug#650299: Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-29 Thread Jeffrey G Thomas
 You filed the bug against 1.0.4-2 which should definitely have
 allow_activeyes/allow_active in there. 
Perhaps so, but myne did not have that set to 'yes' and I came across someone 
in Debian IRC with the same issue and this was the same fix for that person, 
which is why I filed the bug.

 Could you attach the complete
 file please.
Attached.
 
 Could you also check with debsums udisks, if this file was modified.
I reinstalled this before I could check that :( but it certainly was modified 
by me.
 
 A apt-get install --reinstall should bring the original file back.
It did reinstall, and the new file did have that 
allow_activeyes/allow_active in there as you expected.

My drives are currently busy so I cannot test if this new file solves issues 
but I will do so tomorrow.

Thanks for your assistance!


org.freedesktop.udisks.policy
Description: XML document


Bug#650299: udisks: KDE cannot mount USB disks

2011-11-28 Thread Jeffrey G Thomas
Package: udisks
Version: 1.0.4-2
Severity: important

Unable to mount USB disks in KDE until I edited this file
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy

and set the section 'action id=org.freedesktop.udisks.filesystem-mount' to 
be 'allow_anyyes/allow_any' and 'allow_activeyes/allow_active'

This is likely not the correct way to make this function.


Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***


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

Kernel: Linux 3.0.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages udisks depends on:
ii  dbus   1.4.16-1   
ii  libatasmart4   0.18-1 
ii  libc6  2.13-21
ii  libdbus-1-31.4.16-1   
ii  libdbus-glib-1-2   0.98-1 
ii  libdevmapper1.02.1 2:1.02.67-2
ii  libglib2.0-0   2.30.2-4   
ii  libgudev-1.0-0 175-2  
ii  liblvm2app2.2  2.02.88-2  
ii  libparted0debian1  2.3-8  
ii  libpolkit-gobject-1-0  0.102-2
ii  libsgutils2-2  1.32-1 
ii  libudev0   175-2  
ii  udev   175-2  

Versions of packages udisks recommends:
ii  dosfstools   3.0.12-1
ii  eject2.1.5+deb1+cvs20081104-8
ii  hdparm   9.32-1  
ii  mtools   4.0.12-1
ii  ntfs-3g [ntfsprogs]  1:2011.10.9AR.1-1   
ii  policykit-1  0.102-2 

Versions of packages udisks suggests:
pn  cryptsetup none 
pn  mdadm  3.2.2-1
pn  reiserfsprogs  none 
pn  xfsprogs   none 

-- no debconf information



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



Bug#650299: [Pkg-utopia-maintainers] Bug#650299: udisks: KDE cannot mount USB disks

2011-11-28 Thread Michael Biebl
On 28.11.2011 18:04, Jeffrey G Thomas wrote:
 Package: udisks
 Version: 1.0.4-2
 Severity: important
 
 Unable to mount USB disks in KDE until I edited this file

What was the exact problem? Was there an error message?

 /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
 
 and set the section 'action id=org.freedesktop.udisks.filesystem-mount' 
 to be 'allow_anyyes/allow_any' and 'allow_activeyes/allow_active'
 

What's the output of ck-list-sessions?



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#650299: [Pkg-utopia-maintainers] Bug#650299: udisks: KDE cannot mount USB disks

2011-11-28 Thread Jeffrey G Thomas
 What was the exact problem? Was there an error message?
I can't recall exactly, but basically the KDE Device Plasmoid thing read 
something like 'Unable to mount drive: permission denied'

 What's the output of ck-list-sessions?

#jthomas@jthomas:11:12:~$ ck-list-sessions

Session1:
unix-user = '1000'
realname = 'Jeffrey G Thomas'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-28T14:49:46.064711Z'
login-session-id = ''
Session2:
unix-user = '0'
realname = 'root'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/pts/2'
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-28T14:55:22.682774Z'
login-session-id = ''
idle-since-hint = '2011-11-28T16:33:20.630260Z'



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



Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-28 Thread Michael Biebl
On 28.11.2011 18:17, Jeffrey G Thomas wrote:
 What was the exact problem? Was there an error message?
 I can't recall exactly, but basically the KDE Device Plasmoid thing read 
 something like 'Unable to mount drive: permission denied'

Could you run udisks --mount /path/to/device as regular user? (with the
original config files of course)

Please paste the exact error message


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#650299: [Pkg-utopia-maintainers] Bug#650299: Bug#650299: udisks: KDE cannot mount USB disks

2011-11-28 Thread Michael Biebl
On 28.11.2011 18:17, Jeffrey G Thomas wrote:
 What was the exact problem? Was there an error message?
 I can't recall exactly, but basically the KDE Device Plasmoid thing read 
 something like 'Unable to mount drive: permission denied'
 

The output of udisks --dump might be helpful too.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature