Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
系统转移后,普通用户无法自动挂载u盘了
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
sept
n00b
n00b


Joined: 08 Sep 2008
Posts: 6

PostPosted: Mon Sep 08, 2008 3:12 pm    Post subject: 系统转移后,普通用户无法自动挂载u盘了 Reply with quote

由于担心原来的硬盘出现故障,将系统转移到了新的硬盘。之后在kde中普通用户无法自动挂载U盘了(可以手动mount),U盘插入后没有反应,光盘也是一样。hald和dbus都启动了,用户也加入plugdev组了,也不行。root用户却是一切正常。不知道还应该设置哪里呢?

/etc/dbus-1/system.d/hal.conf设置有问题吗?
Code:
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user haldaemon can own the HAL service -->
  <policy user="haldaemon">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_interface="org.freedesktop.Hal.Device"/>
    <allow receive_interface="org.freedesktop.Hal.Manager"
           receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device"
           receive_sender="org.freedesktop.Hal"/>

    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement"
      receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel"
      receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.Volume"
      receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto"
      receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Default policy for the exported interfaces -->
  <policy context="default">
    <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
    <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- This will not work if pam_console support is not enabled -->
  <policy at_console="true">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- You can change this to a more suitable user, or make per-group -->
  <policy user="0">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
  <!-- We possibly will use 'powerdev' for Power Management or work on encapsulating everything in ConsoleKit -->
  <policy group="plugdev">
     <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  </policy>
  <policy group="plugdev">
     <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

</busconfig>
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Tue Sep 09, 2008 3:15 am    Post subject: Reply with quote

这个配置应该是不用动的,你安装系统的时候有全局启用hal的USE吗?或者所有kde的包都要启用hal才行。
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
sept
n00b
n00b


Joined: 08 Sep 2008
Posts: 6

PostPosted: Tue Sep 09, 2008 3:54 am    Post subject: Reply with quote

已经全局启用hal标记了,并且root用户现在一切正常,可以自动挂载。就是普通用户不行 :(
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Thu Sep 11, 2008 12:43 am    Post subject: Reply with quote

看一下插入u盤後,用戶~/.xsession-errors有沒有提示.

另外kde是那一版的?有沒有用gnome試一下?
Back to top
View user's profile Send private message
sept
n00b
n00b


Joined: 08 Sep 2008
Posts: 6

PostPosted: Fri Sep 12, 2008 4:41 pm    Post subject: Reply with quote

不知道是不是转移时有什么错误,其它的问题也比较多,索性重新安装了 :o
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum