Hi

On Tuesday 14 May 2013, Andrew Shadura wrote:
[…]
> Please create the control sockets and the directory holding them owned
> by netdev group, and group-accessible. Otherwise it's impossible to use
> wpa_cli as a non-root user.
[…]

You can configure this through your wpa_supplicant.conf.

wpa_supplicant.conf(5):
[…]
QUICK EXAMPLES
       1. WPA-Personal (PSK) as home network and WPA-Enterprise with EAP-TLS as 
work network.

          # allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' 
group
          ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
[…]

/usr/share/doc/wpasupplicant/README.gz:
[…]
# allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' group
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
[…]


e.g.:

/etc/network/interfaces:

allow-hotplug wlan0
iface wlan0 inet manual
        wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface home inet dhcp
iface work inet dhcp
iface default inet dhcp


/etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=netdev

network={
        priority=30
        ssid="my-essid"
        id_str="home"
        proto=WPA2
        pairwise=CCMP
        group=CCMP
        psk="home-secret"
}

network={
        priority=25
        ssid="work-essid"
        id_str="work"
        key_mgmt=IEEE8021X
        eap=TTLS
        phase2="auth=PAP"
        identity="u...@work.example.com"
        password="work-secret"
        ca_cert="/etc/wpa_supplicant/work.pem"
}

network={
        priority=1
        ssid=""
        key_mgmt=NONE
}

With ctrl_interface_group=netdev, all members of netdev can use wpa_gui
or wpa_cli. Does that meet your needs?

Regards
        Stefan Lippers-Hollmann

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to