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! ;-)
3
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:
8
9 /var/run/wpa_supplicant
10
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:
16
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)
25
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:
28
29 ctrl_interface=/var/run/wpa_supplicant
30
31
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.:
34
35 GROUP=users
36
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:
40
41 DIR=/var/run/wpa_supplicant GROUP=wheel
42
43 Again wpa_supplicant fails to start complaining about the whole line I just
44 added. :-/
45
46 So, I look at older wpa_supplicant.conf files of mine and discover the
47 directive needed to specify a GROUP is:
48
49 ctrl_interface_group=wheel
50
51 which works faultlessly each time.
52
53 Am I missing something here, or is the example provided for
54 wpa_supplicant.conf incorrect/incomplete and merits a bug report?
55
56 --
57 Regards,
58 Mick

Attachments

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

Replies

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