On Sun 05 Mar 2023 at 20:57:25 (+0000), Albretch Mueller wrote: > On 3/5/23, David Wright <deb...@lionunicorn.co.uk> wrote: > > > > I run installed systems, so wifi passwords are either in individual > > /var/lib/iwd/<ESSID>.psk files (with iwd), or collectively in > > /etc/wpa_supplicant/<ifname>.conf (with wpasupplicant/systemd-networkd). > > > > These files have go= permissions, and I don't consider them of great > > enough concern to put them on an encrypted filesystem (which would > > in any case need unlocking). However, you could do just that, with an > > encrypted USB stick. At least you'd benefit from just one passphrase > > to unlock any and all necessary secrets. > > Is there a way to pass the password on the command to that modprobe > or whichever utility? > > Apparently because I use DL I don't have that kind of directory structure: > > $ cd /var/lib/iwd/ > bash: cd: /var/lib/iwd/: No such file or directory
You only don't have this directory because you have: > drwx------ 1 root root 140 Mar 5 20:50 NetworkManager running your network, not iwd. As for /etc/wpa_supplicant/, NM lists it as a dependency. I don't whether NM is scriptable, for passing in a password, or not: I've never used it. Cheers, David.