[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#629054: Workaround for unmounting USB flash drives / mobile HDs / jecting optical media



Hi,

on a D-E squeeze diskless workstation I figured out a workaround that allows users to unmount mobile HDs / USB flash drives. It probably will help to eject optical discs as well, though this has not been tested, yet. (Will be happy about feedback).

However, I am not sure if we can fix this in debian-edu-config ourselves or if the issue has to be reported to the udisks package maintainer.

Workaround patch is attached.

Mike

--

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
--- /usr/share/polkit-1/actions/org.freedesktop.udisks.policy.orig
+++ /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
@@ -71,9 +71,9 @@
     <message xml:lang="da">Autorisering er påkrævet for at afmontere enheder monteret af en anden bruger</message>
     <message xml:lang="de">Zugriffsrechte werden benötigt um ein Gerät auszuhängen, das ein anderer Benutzer eingehängt hat</message>
     <defaults>
-      <allow_any>no</allow_any>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin</allow_active>
+      <allow_any>yes</allow_any>
+      <allow_inactive>yes</allow_inactive>
+      <allow_active>yes</allow_active>
     </defaults>
   </action>
 
@@ -112,8 +112,8 @@
     <message xml:lang="da">Autorisering er påkrævet for at skubbe medie ud af en enhed</message>
     <message xml:lang="de">Zugriffsrechte werden benötigt um das Medium aus dem Gerät auszuwerfen</message>
     <defaults>
-      <allow_any>no</allow_any>
-      <allow_inactive>no</allow_inactive>
+      <allow_any>yes</allow_any>
+      <allow_inactive>yes</allow_inactive>
       <allow_active>yes</allow_active>
     </defaults>
   </action>
@@ -124,8 +124,8 @@
     <message>Authentication is required to detach the drive</message>
     <message xml:lang="de">Zugriffsrechte werden benötigt um das Laufwerk zu trennen</message>
     <defaults>
-      <allow_any>no</allow_any>
-      <allow_inactive>no</allow_inactive>
+      <allow_any>yes</allow_any>
+      <allow_inactive>yes</allow_inactive>
       <allow_active>yes</allow_active>
     </defaults>
   </action>

Attachment: pgp_yaiKtWidR.pgp
Description: Digitale PGP-Unterschrift


Reply to: