• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

USB-Geräte nur über root zugreifbar

suse 11.0
kde 3. 5

Nach Update wird beim Verbinden via Usb jedes Gerät, wie zuvor auch erkannt.
Wenn ich nun

In einem neuen Fenster öffnen anklicke

kommt folgende Fehlermeldung:

org.freedesktop.hal.storage.mount-removable no <-- (action, result)

Code:
/usr/sbin/lsusb
Bus 004 Device 002: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:08da Logitech, Inc. QuickCam Messanger
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 015: ID 0492:0140 Samsung SemiConductor, Inc.
Bus 002 Device 013: ID 05e3:0702 Genesys Logic, Inc. USB 2.0 IDE Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Hab es jetzt unter root versucht, da klappt alles wunderbar.
Es geht wohl um Zugangsberichtigungen.

Wie kann ich die wieder verändern?

Code:
lsusb
Bus 004 Device 002: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:08da Logitech, Inc. QuickCam Messanger
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 04a9:1729 Canon, Inc. MX700 ser
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code:
lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge (rev 80)
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, 66MHz, medium devsel, latency 8
        Memory at d0000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [80] AGP version 3.5
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: agpgart-via
        Kernel modules: via-agp

00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: dc000000-ddffffff
        Prefetchable memory behind bridge: d8000000-dbffffff
        Capabilities: [80] Power Management version 2
        Kernel modules: shpchp

00:0b.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
        Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
        Flags: bus master, slow devsel, latency 32, IRQ 19
        I/O ports at d000 [size=64]
        Capabilities: [dc] Power Management version 1
        Kernel driver in use: ENS1371
        Kernel modules: snd-ens1371

00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at d400 [size=32]
        Capabilities: [80] Power Management version 2
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at d800 [size=32]
        Capabilities: [80] Power Management version 2
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at dc00 [size=32]
        Capabilities: [80] Power Management version 2
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20 [EHCI])
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 21
        Memory at de000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2
        Kernel modules: via-ircc, i2c-viapro

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 20
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
        I/O ports at e000 [size=16]
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: pata_via
        Kernel modules: pata_via, via82cxxx

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
        Subsystem: ABIT Computer Corp. Device 140f
        Flags: bus master, medium devsel, latency 32, IRQ 23
        I/O ports at e400 [size=256]
        Memory at de001000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [40] Power Management version 2
        Kernel driver in use: via-rhine
        Kernel modules: via-rhine

01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. V9180 Magic
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
        Memory at dc000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d8000000 (32-bit, prefetchable) [size=64M]
        [virtual] Expansion ROM at dd000000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nvidia

Code:
lspci | grep -i controller
00:0b.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2)
 
OP
G

Gandalf333

Hacker
Bin auf diese Seite gestoßen, leider ist mein englisch nicht so gut:

http://www.nabble.com/Can't-automount-without-being-root-td16358029.html

Mit der Bitte um Unterstützung.

Oder was ist mit dieser Seite:

http://sathyasays.com/2008/08/20/how-to-enable-auto-mounting-of-external-drives-in-opensuse-11/

Code:
<policyconfig>

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.unmount-others">
    <description>Unmount file systems mounted by other users.</description>
    <message>System policy prevents unmounting media mounted by other users</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.eject">
    <description>Eject removable media.</description>
    <message>System policy prevents ejecting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
    <description>Set up decryption for encrypted fixed storage devices.</description>
    <message>System policy prevents accessing encrypted fixed media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
    <description>Set up decryption for encrypted removable storage devices.</description>
    <message>System policy prevents accessing encrypted removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>
 
OP
G

Gandalf333

Hacker
Habe jetzt hier noch diesen Seite gefunden, weiss aber nichts damit anzufangen:

http://de.opensuse.org/SDB:Scanner_...ndet werden. ] Kann mir jemand weiterhelfen?
 
OP
G

Gandalf333

Hacker
Gibt es keine Hilfe?
Habe ich eine falsche Frage gestellt?
Oder die Frage falsch gestellt?
Habe ich mich nicht an die Nomenklatur gehalten?

Ich bitte dringend um Hilfe.
 

misiu

Moderator
Teammitglied
Hast du zuletzt Gparted benutzt oder anders Partitioniert?
Welche Versionen von PolicyKit und HAL sind installiert?
Steht was in: /etc/PolicyKit/ oder in PolicyKit.conf ?
Kannst du einen neuen Benutzer anlegen und unter diesem Prüfen , ob es geht?

Sehe auch:
http://linux.derkeiler.com/Newsgroups/alt.os.linux.suse/2008-01/msg00829.html

Die /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy (opensuse 11.0) sollte so aussehen:

Code:
<?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>

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.unmount-others">
    <description>Unmount file systems mounted by other users.</description>
    <message>System policy prevents unmounting media mounted by other users</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.eject">
    <description>Eject removable media.</description>
    <message>System policy prevents ejecting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
    <description>Set up decryption for encrypted fixed storage devices.</description>
    <message>System policy prevents accessing encrypted fixed media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
    <description>Set up decryption for encrypted removable storage devices.</description>
    <message>System policy prevents accessing encrypted removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>


MfG
misiu
 
OP
G

Gandalf333

Hacker
Hast du zuletzt Gparted benutzt oder anders Partitioniert?

Nein.

Kannst du einen neuen Benutzer anlegen und unter diesem Prüfen , ob es geht?
Wie geht das? Mein Englisch ist nicht so gut. Deshalb kann ich mit dem Link nicht viel anfangen.

Habe PolicyKit 0.8-14.1@i586
und hal 0.5.11-8.1@i586

etc/policykit.conf~

Code:
<?xml version="1.0" encoding="UTF-8"?> 

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">



<config version="0.1">
 <match action="hal-storage-*">
  <match user="50*">
   <return result="yes"/>
  </match>
 </match>
</config>
<match action="org.freedesktop.hal.storage.mount-removable">
       <return result="yes" />
    </match>


/usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy~

Code:
<?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>

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.unmount-others">
    <description>Unmount file systems mounted by other users.</description>
    <message>System policy prevents unmounting media mounted by other users</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.eject">
    <description>Eject removable media.</description>
    <message>System policy prevents ejecting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
  
  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
    <description>Set up decryption for encrypted fixed storage devices.</description>
    <message>System policy prevents accessing encrypted fixed media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
    <description>Set up decryption for encrypted removable storage devices.</description>
    <message>System policy prevents accessing encrypted removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>

Habe aber auch noch
/usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy

Code:
Mount file systems from internal drives. System policy prevents mounting internal media  no auth_admin_keep_always    Mount file systems from removable drives. System policy prevents mounting removable media  yes yes    Unmount file systems mounted by other users. System policy prevents unmounting media mounted by other users  no auth_admin_keep_always    Eject removable media. System policy prevents ejecting removable media  no yes    Set up decryption for encrypted fixed storage devices. System policy prevents accessing encrypted fixed media  no auth_admin_keep_always    Set up decryption for encrypted removable storage devices. System policy prevents accessing encrypted removable media  no yes
 

misiu

Moderator
Teammitglied
Ein neuer Benutzer kann im Yast angelegt werden.

in /etc/PolicyKit/PolicyKit.conf
sollte eigentlich das stehen:

Code:
<?xml version="1.0" encoding="UTF-8"?> 

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">



<config version="0.1">
</config>

Leg eine Sicherungskopie davon an, lösche den Inhalt und kopiere diesen rein.
Könnte sein, dass es danach geht.


MfG
misiu
 
OP
G

Gandalf333

Hacker
Hab Sicherungsdatei angelegt, den Inhalt gelöscht und "deinen" Inhalt reinkopiert.
Funzt immer noch nicht.
 

misiu

Moderator
Teammitglied
Lege einen neuen Benutzer an über: Yast->Sicherheit und Benutzer->Benutzer bearbeiten und anlegen.
Melde dich ab und dann mit dem neuem Benutzer an. Versuche dann , ob dein "neue" Benutzer
auf die Speichermedien Zugriff hat.

MfG
misiu
 
OP
G

Gandalf333

Hacker
Lege einen neuen Benutzer an über: Yast->Sicherheit und Benutzer->Benutzer bearbeiten und anlegen.
Melde dich ab und dann mit dem neuem Benutzer an. Versuche dann , ob dein "neue" Benutzer
auf die Speichermedien Zugriff hat.

Habe ich gemacht. Es kam dieselbe Fehlermeldung.
 

misiu

Moderator
Teammitglied
Keine Ahnung, was da nicht in Ordnung ist.
Tut mir leid, ich habe keine weiteren Ideen, was das Problem betrifft
(außer natürlich einer Neuinstallation bzw. Distribution-Wechsel-> Ubuntu etc.)

MfG
misiu
 

josef-wien

Ultimate Guru
Schaut /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy wirklich so aus, wie Du am Schluß Deines Beitrags vom 4. Nov. 2008, 21:39 Uhr, geschrieben hast? Wenn ja, dann ist das Schrott.

Die Rettkopie /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy~ schaut da viel besser aus (abgesehen davon, daß ich das eine Vorkommen von <allow_inactive>yes</allow_inactive> auch auf <allow_inactive>no</allow_inactive> ändern würde). Benenne ...policy auf etwas anderes um und dann ...policy~ auf ...policy (und starte den Rechner neu, da ich nicht weiß, welche Dienste man neu starten müßte).
 

josef-wien

Ultimate Guru
Falls Du es noch nicht probiert hat, in manchen Fällen hat das geholfen:
http://www.linux-club.de/viewtopic.php?f=27&t=98663#p600007
Deine userid bekommst Du mit dem Befehl: id

Mehr fällt mir zu dem Thema nicht ein.
 
Für alle Fälle mal der Inhalt der Datei "/usr/share/hal/fdi/policy/10osvendor> cat 99-storage-policy-fixed-drives.fdi"
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
<device>
<match key="@block.storage_device:storage.hotpluggable" bool="false">
<match key="@block.storage_device:storage.removable" bool="false">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
Ich habe (meine ich) das Ding damals umbenannt. Du kannst si ja mal zunächst umbenennen und dann hal mit IMHO
Code:
rchald restart
als root neu starten.

CU Freddie
 
OP
G

Gandalf333

Hacker
Code:
/usr/share/hal/fdi/policy/10osvendor> cat 99-storage-policy-fixed-drives.fdi                                              <?xml version="1.0" encoding="UTF-8"?>                                                                                hal/fdi/policy                                                                                                                             <deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </match>
</device>
</deviceinfo>

Ich habe (meine ich) das Ding damals umbenannt. Du kannst si ja mal zunächst umbenennen und dann hal mit IMHO

Was hast du umbenannt?
 
Oben