Debian GNU/Linux 9 (stretch)
Linux version 4.4.132+ (jenkins@fdc-06) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 SMP
sudo /sbin/wpa_supplicant -v prints
I’m setting thses permissions in
/etc/wpa_supplicant/wpa_supplicant.conf config file.
Tried both ways, the documented one:
and another one I’ve found after reading source code of that supplicant:
Neither of them works:
$ ls -la /var/run/wpa_supplicant ls: cannot open directory '/var/run/wpa_supplicant': Permission denied $ sudo ls -la /var/run/wpa_supplicant srwxrwx--- 1 root root 0 Mar 22 19:24 wlan0
Both owner and group is root despite what’s written in the config.
Worked OK just a few months ago, with Linux 4.4.71+.
How to set the permissions on that UNIX socket?
P.S. Some context: this is embedded system running on ARM SoC. I’m consuming that control interface programmatically, i.e. I need my software, running under normal user account, control Wi-Fi: connect, disconnect, set passwords, etc. There's no Linux desktop nor X-windows running.
Update: as advised in the comments, adding more context. This is custom made embedded device based on RK3288, running Linux kernel, minimal set of systemd services (wpa_supplicant is among them), and a single application I’ve developed. Users interact with my app using a touchscreen, and through the network (but first they need to connect somehow). There’s no X window or Wayland, no desktop, no mouse or keyboard.