首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WPA_GUI仅用作根用户。

WPA_GUI仅用作根用户。
EN

Ask Ubuntu用户
提问于 2014-04-14 21:38:47
回答 1查看 2.1K关注 0票数 0

只有当我以根用户的身份运行它时,WPA_gui才能工作。我知道我需要改变它的权限,但是我不知道它在哪里或者什么地方。

我尝试过将用户添加到NetDev组中,但这不起作用。任何想法都将不胜感激。

谢谢

编辑: my /etc/dbus-1/system.d/wpa_supplicant.conf

代码语言:javascript
复制
<!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="fi.epitest.hostap.WPASupplicant"/>

            <allow send_destination="fi.epitest.hostap.WPASupplicant"/>
            <allow send_interface="fi.epitest.hostap.WPASupplicant"/>

            <allow own="fi.w1.wpa_supplicant1"/>

            <allow send_destination="fi.w1.wpa_supplicant1"/>
            <allow send_interface="fi.w1.wpa_supplicant1"/>
            <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
    </policy>
    <policy group="netdev">
            <allow send_destination="fi.epitest.hostap.WPASupplicant"/>
            <allow send_interface="fi.epitest.hostap.WPASupplicant"/>

            <allow send_destination="fi.w1.wpa_supplicant1"/>
            <allow send_interface="fi.w1.wpa_supplicant1"/>
            <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
    </policy>
    <policy context="default">
            <deny own="fi.epitest.hostap.WPASupplicant"/>
            <deny send_destination="fi.epitest.hostap.WPASupplicant"/>
            <deny send_interface="fi.epitest.hostap.WPASupplicant"/>

            <deny own="fi.w1.wpa_supplicant1"/>
            <deny send_destination="fi.w1.wpa_supplicant1"/>
            <deny send_interface="fi.w1.wpa_supplicant1"/>
            <deny receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
    </policy>
</busconfig>

以及从命令组读出的

代码语言:javascript
复制
armtc adm cdrom sudo dip plugdev lpadmin netdev sambashare

两人似乎都提到了组内发展,但仍然没有喜悦。

/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service & /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant1.service :EDIT2

代码语言:javascript
复制
[D-BUS Service]
Name=fi.epitest.hostap.WPASupplicant
Exec=/sbin/wpa_supplicant -B -P /run/sendsigs.omit.d/wpasupplicant.pid -u -s -O /var/run/wpa_supplicant
User=root
SystemdService=wpa_supplicant.service
EN

回答 1

Ask Ubuntu用户

发布于 2014-04-14 22:01:37

在wpa_supplicant.conf中查找以下行:

代码语言:javascript
复制
# needed for wpa_gui to work 
ctrl_interface=DIR=<Dir on Gentoo: /var/run/wpa_supplicant> GROUP=<Group on gentoo: plugdev> 
# needed to allow wpa_gui to alter the configuration 
update_config=1 
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/447847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档