On 2/24/26 11:57 AM, Dave Close wrote:
I wrote:

I'd like a wifi connection to be automatically activated whenever the
associated machine is booted. This file does the job on one machine:

   # cat /etc/NetworkManager/system-connections/NAME.nmconnection
   [connection]
   id=NAME
   uuid=...
   type=wifi
   timestamp=...
   [wifi]
   cloned-mac-address=permanent
   mac-address-randomization=never
   mode=infrastructure
   ssid=NAME
   [wifi-security]
   key-mgmt=wpa-psk
   psk=PASSWORD
   [ipv4]
   method=auto
   [ipv6]
   addr-gen-mode=stable-privacy
   method=auto
   [proxy]

However, on two others the connection does not come up. Trying after boot
from the command line, I see:

   # nmcli c up NAME
   Push of the WPS button on the router or a password is required to
     access the wireless network 'NAME'.
   Warning: password for '802-11-wireless-security.psk' not given in
     'passwd-file' and nmcli cannot ask without '--ask' option.
   Error: Connection activation failed: Secrets were required, but not
     provided

If I create a password file and run,

  # nmcli c up NAME passwd-file NAME.pw

it comes up just fine. But I can't find any way to declare that file name
in the nmconnection file.

The only obvious difference between the machines is that the one which
works does not have a wired connection, only wifi. The other two do have
a wired connection which does come up on boot.

Note, Fedora 43 x86_64 regularly upgraded. NetworkManager version on all
three machines is the same, NetworkManager-1.54.3-2.fc43.x86_64.

Samuel Sieb wrote:

The "psk=PASSWORD" line is what does it.  You need the password there.

As the file cat'd above shows, I have it there. Exactly the same on all
three machines. For some reason on two of them, it doesn't work.

I've never had this not work.
I compared again against what I have and there's a "auth-alg=open" line first in the "[wifi-security]" section in every wifi connection that has a password. Maybe that's what's missing.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to