Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] wpa_supplicant.conf incongruity
Date: Wed, 19 Jun 2019 10:08:48
Message-Id: 7068296.eY9vMmjv6p@dell_xps
1 This must be the third if not fourth time the syntax in wpa_supplicant.conf
2 bit me - I don't learn easily! ;-)
4 The comments in the example configuration file installed with wpa_supplicant
5 provided under /usr/share/doc/wpa_supplicant-2.6-r10/wpa_supplicant.conf.bz2
6 explain a Unix control socket for external programs (wpa_cli, wpa_gui, etc.)
7 to access will be created in a (default) directory:
9 /var/run/wpa_supplicant
11 To set access controls for socket(s) which will be created in this directory
12 you can define a GROUP in the wpa_supplicant.conf file, so non-root users may
13 scan for APs and set passwords for them using cli/gui applications. A syntax
14 is given in this file to explain how to go about specifying a GROUP name for
15 managing the cli/gui interface:
17 # When configuring both the directory and group, use following format:
18 # DIR=/var/run/wpa_supplicant GROUP=wheel
19 # DIR=/var/run/wpa_supplicant GROUP=0
20 # (group can be either group name or gid)
21 #
22 # For UDP connections (default on Windows): The value will be ignored. This
23 # variable is just used to select that the control interface is to be created.
24 # The value can be set to, e.g., udp (ctrl_interface=udp)
26 Here's where things go a bit off-piste. There's an uncommented entry in the
27 next paragraph specifying not an IP protocol, but a Unix socket like so:
29 ctrl_interface=/var/run/wpa_supplicant
32 Having read the above and more in the example file, I thought the way to
33 define a GROUP would be to just add a single directive, e.g.:
35 GROUP=users
37 But this causes wpa_supplicant to fail complaining about my GROUP entry above.
38 Fair enough, from what it says I should also specify the directory. So I
39 copied and pasted verbatim:
41 DIR=/var/run/wpa_supplicant GROUP=wheel
43 Again wpa_supplicant fails to start complaining about the whole line I just
44 added. :-/
46 So, I look at older wpa_supplicant.conf files of mine and discover the
47 directive needed to specify a GROUP is:
49 ctrl_interface_group=wheel
51 which works faultlessly each time.
53 Am I missing something here, or is the example provided for
54 wpa_supplicant.conf incorrect/incomplete and merits a bug report?
56 --
57 Regards,
58 Mick


File name MIME type
signature.asc application/pgp-signature


Subject Author
[gentoo-user] Re: wpa_supplicant.conf incongruity Ian Zimmerman <itz@××××××××××××.org>