Re: how to set psk-flags=0 disabling encrypted psk storage as default for gnome-network-manager



On Thu, 2020-03-12 at 23:44 +0100, Jelle de Jong via networkmanager-
list wrote:
Hi everybody,

I want to find a way to keep WiFi networks connected before user
logins 
or logoff.

That implies that you do not restrict the profile to a certain user.
Meaning: "connection.permissions" is left unset/empty.


The problem seems to be that network-manager tries to auto connect
but 
does not have access to the encrypted key. I am going through the
docs 
and there is an psk-flags=0 that should tell to not use encrypted
storage.

The docs that you refer to is possbly `man nm-settings`.


How do I set psk-flags=0 as default for gnome-network-manager, i
cant 
seem to find the right dbus or polkit policy.

As said, there is no "default".

This is a setting of each profile, there is no default. Also, the
setting is determined by the client tool that creates/modifes the
profile. NetworkManager doesn't really apply a default.


tried the bellow in /etc/NetworkManager/NetworkManager.conf but did
not 
work.

Don't configure per-profile settings in NetworkManager.conf. There is
`man NetworkManager.conf` for general NetworkManager configuration and
`man nm-settings` for per-profile settings.

You can set profile values in several ways:

  nmcli connection show "$PROFILE"
  nmcli connection modify "$PROFILE" wifi-sec.psk-flags 0

you can also set this via most of the GUIs, like nm-connection-editor
or plasma-nm.

You can also edit the profile on disk, but that would then be in
/etc/NetworkManager/system-connections (or similar). See the actually
used file via `nmcli -f all connection`. If you edit the file, you need
to first do `nmcli connection reload` or `nmcli connection load
"$FILENAME"`.


[802-11-wireless-security]
psk-flags=0

[wifi-security]
psk-flags=0



best,
Thomas


Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]