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.

Tim wrote:

>If you prefix your command with "strace"
>e.g. strace nmcli c up NAME
>you may be able to see the filenames that it's trying to read.

I meant that the documentation for the content of the nmconnection file
does not show any way to reference a password file. And why should it,
given that it provides a way to directly enter the password in itself?
-- 
         Dave Close, Compata, Irvine CA       +1 714 434 7359
       [email protected]              [email protected]
    "The Swiss Army coudn't open a wine bottle with Occam's razor."
                        -- Jef Mallett (Frazz)


-- 
_______________________________________________
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