只有当我以根用户的身份运行它时,WPA_gui才能工作。我知道我需要改变它的权限,但是我不知道它在哪里或者什么地方。
我尝试过将用户添加到NetDev组中,但这不起作用。任何想法都将不胜感激。
谢谢
编辑: my /etc/dbus-1/system.d/wpa_supplicant.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="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>以及从命令组读出的
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
[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发布于 2014-04-14 22:01:37
在wpa_supplicant.conf中查找以下行:
# 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 https://askubuntu.com/questions/447847
复制相似问题