ubuntu xrdp远程登录一直弹出Authentication required. System policy prevents WiFi scans

windows远程登录以后想要连接一下wifi,一定弹出Authentication required,关都关不掉,wifi也连不上。

使用以下方法后完美解决

sudo vi /etc/polkit-1/localauthority/50-local-d/network.pkla

加入如下内容:

[Allow Wifi Scan]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.wifi.scan;org.freedesktop.NetworkManager.enable-disable-wifi;org.freedesktop.NetworkManager.settings.modify.own;org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.network-control
ResultAny=yes
ResultInactive=yes
ResultActive=yes

保存退出后重新登陆就OK了

你可能感兴趣的:(树莓派,ubuntu,linux)