作者:arashilan | 来源:互联网 | 2017-11-15 08:34
当使用Desktop -> Administration -> Users and Groups -> Add User的时候,可能会发现nm-applet图标不再出现,当使用sudo nm-applet命令后会出现如下错误信息:
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'.
Then restart dbus
sudo /etc/init.d/dbus restart
and launch the applet
nm-applet这样就应该可以了。