could not connect to wicd's d-bus interface的一种解决方案

刚装的ubuntu9.10,重启几次后就出现这个错误了,先google一下,基本确定是权限问题,看了下网友给出的解决方案,更改用户组。

看了下配置文件/etc/dbus-1/system.d/wicd.conf

<!-- /etc/dbus-1/system.d/wicd.conf -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

        <policy user="root">
                <allow own="org.wicd.daemon"/>
                <allow send_destination="org.wicd.daemon"/>
                <allow send_interface="org.wicd.daemon"/>
        <allow send_destination="org.wicd.daemon.wireless"/>
        <allow send_interface="org.wicd.daemon.wireless"/>
        <allow send_destination="org.wicd.daemon.wired"/>
        <allow send_interface="org.wicd.daemon.wired"/>
        <allow send_destination="org.wicd.daemon.config"/>
        <allow send_interface="org.wicd.daemon.config"/>
        </policy>

        <policy at_console="true">
                <allow send_destination="org.wicd.daemon"/>
                <allow send_interface="org.wicd.daemon"/>
        <allow send_destination="org.wicd.daemon.wireless"/>
        <allow send_interface="org.wicd.daemon.wireless"/>
        <allow send_destination="org.wicd.daemon.wired"/>
        <allow send_interface="org.wicd.daemon.wired"/>
        <allow send_destination="org.wicd.daemon.config"/>
        <allow send_interface="org.wicd.daemon.config"/>
        <allow send_interface="org.freedesktop.DBus.Introspectable"/>
        </policy>

        <policy context="default">
                <deny own="org.wicd.daemon"/>
        </policy>

    <!-- This Unix group will have permission to use Wicd's gui -->
        <policy group="netdev">
                <allow send_interface="org.freedesktop.DBus.Introspectable"/>
                <allow send_destination="org.wicd.daemon"/>
                <allow send_interface="org.wicd.daemon"/>
        </policy>

</busconfig>

直接添加个用户权限policy

        <policy user="YourUserName">
                <allow own="org.wicd.daemon"/>
                <allow send_destination="org.wicd.daemon"/>
                <allow send_interface="org.wicd.daemon"/>
        <allow send_destination="org.wicd.daemon.wireless"/>
        <allow send_interface="org.wicd.daemon.wireless"/>
        <allow send_destination="org.wicd.daemon.wired"/>
        <allow send_interface="org.wicd.daemon.wired"/>
        <allow send_destination="org.wicd.daemon.config"/>
        <allow send_interface="org.wicd.daemon.config"/>
        </policy>

网络恢复,上来写上这篇文章,为后来者提供一个解决方法。

我给的权限有点多了,给个netdev group的相同权限应该就行了的。

0 条留言

我要留言
(必填)
(必填,绝不公开)