1
Można zrobić myk, by wyjąć interfejs sieciowy spod zarządzania nm:
https://developer.gnome.org/NetworkManag....conf.html
https://askubuntu.com/a/22166/101543
A potem to już konfiguracja interfejsu wlan w /etc/network/interfaces + wpasupplicant i tam określić sieci, ich priorytety itd.
Można by też skonfigurować polkit'a by tylko konkretne usery mogły korzystać z nm, bo akcje mogą być takie (/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy):
https://developer.gnome.org/NetworkManag....conf.html
https://askubuntu.com/a/22166/101543
A potem to już konfiguracja interfejsu wlan w /etc/network/interfaces + wpasupplicant i tam określić sieci, ich priorytety itd.
Można by też skonfigurować polkit'a by tylko konkretne usery mogły korzystać z nm, bo akcje mogą być takie (/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy):
Kod:
<action id="org.freedesktop.NetworkManager.enable-disable-network">
<description>Enable or disable system networking</description>
<action id="org.freedesktop.NetworkManager.reload">
<description>Reload NetworkManager configuration</description>
<action id="org.freedesktop.NetworkManager.sleep-wake">
<description>Put NetworkManager to sleep or wake it up (should only be used by system power management)</description>
<action id="org.freedesktop.NetworkManager.enable-disable-wifi">
<description>Enable or disable Wi-Fi devices</description>
<action id="org.freedesktop.NetworkManager.enable-disable-wwan">
<description>Enable or disable mobile broadband devices</description>
<action id="org.freedesktop.NetworkManager.enable-disable-wimax">
<description>Enable or disable WiMAX mobile broadband devices</description>
<action id="org.freedesktop.NetworkManager.network-control">
<description>Allow control of network connections</description>
<action id="org.freedesktop.NetworkManager.wifi.scan">
<description>Allow control of Wi-Fi scans</description>
<action id="org.freedesktop.NetworkManager.wifi.share.protected">
<description>Connection sharing via a protected Wi-Fi network</description>
<action id="org.freedesktop.NetworkManager.wifi.share.open">
<description>Connection sharing via an open Wi-Fi network</description>
<action id="org.freedesktop.NetworkManager.settings.modify.own">
<description>Modify personal network connections</description>
<action id="org.freedesktop.NetworkManager.settings.modify.system">
<description>Modify network connections for all users</description>
<action id="org.freedesktop.NetworkManager.settings.modify.hostname">
<description>Modify persistent system hostname</description>
<action id="org.freedesktop.NetworkManager.settings.modify.global-dns">
<description>Modify persistent global DNS configuration</description>
<action id="org.freedesktop.NetworkManager.checkpoint-rollback">
<description>Perform a checkpoint or rollback of interfaces configuration</description>
<action id="org.freedesktop.NetworkManager.enable-disable-statistics">
<description>Enable or disable device statistics</description>
<action id="org.freedesktop.NetworkManager.enable-disable-connectivity-check">
<description>Enable or disable connectivity checking</description>