Debian: Gnome桌面的右上端的NetworkManager Applet图标问题
当使用Desktop -> Administration -> Users and Groups -> Add User的时候,可能会发现nm-applet图标不再出现,当使用sudo nm-applet命令后会出现如下错误信息:
WARNING **: <WARNING> (): nmwa_dbus_init() could not acquire its service. dbus_bus_acquire_service() says: 'Connection ":1.26" is not allowed to own the service "org.freedesktop.NetworkManagerInfo" due to security policies in the configuration file'
这时候可以考虑如下解决方案:
1. The first and easiest way to work around this security issue is to add yourself to the netdev group. The default security policy permits access for that group.
2、
Change the default policy context in both
/etc/dbus-1/system.d/NetworkManager.conf
and
/etc/dbus-1/system.d/nm-applet.conf
so it says 'allow' instead of 'deny'.
<policy context="default">
<allow own="org.freedesktop.NetworkManager"/>
<allow send_destination="org.freedesktop.NetworkManager"/>
<allow send_interface="org.freedesktop.NetworkManager"/></policy>
Then restart dbus
sudo /etc/init.d/dbus restart
and launch the applet
nm-applet这样就应该可以了。