On Thu, 3 Mar 2022, Stella Ashburne wrote:
Dearie
Sent: Thursday, March 03, 2022 at 1:59 AM
From: "Brian" <a...@cityscape.co.uk>
To: debian-user@lists.debian.org
Subject: Re: What should I put inside the file called wlan0?
On Wed 02 Mar 2022 at 09:01:55 +0100, Stella Ashburne wrote:
Are you saying that my /etc/network/interfaces file may look like the following so long
as the line "source /etc/network/interfaces.d/*" (without quotes) is present?
Correct, although I do nit understand what you gain from using
/etc/network/interfaces.d/.
Please surf to https://wiki.debian.org/WiFi/HowToUse, sub-heading "WPA-PSK and
WPA2-PSK", paragraph 1 which states:
1. Restrict the permissions of /etc/network/interfaces, to prevent pre-shared
key (PSK) disclosure (alternatively use a separate config file such as
/etc/network/interfaces.d/wlan0 on newer Debian versions):
If you only have one interface then it probably doesn't make much
difference whether you leave it in interfaces or move it to
interfaces.d/
I prefer interfaces.d/ but I have some machines with lots of interfaces
to configure. I also do quite a lot of maintenance programmatically and
it's much easier to work with separate files than have to find the
correct bit in one long file.
This is orthogonal to the permissions thing. If you do not want your
WiFi password to be in a world readable file then you should ensure that
the file that contains your password isn't world readable.