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

Thank you Thomas for taking the time to reply,

I understand what you write and that by using the nmcli I can create manual profiles as administrator that behave the way I want.

How co I find support for network-manager-gnome nm-applet I need it to change it default behavior and store wifi profiles created as users with wifi-sec.psk-flags 0 and connection.permissions empty.

Do you know the dbus or policy options or user profile or general config settings to make the client behave this way?

I not looking for a way where I can do this manually when making each new WiFi connections, I need the default behavior set.

On 2020-03-13 07:47, Thomas Haller wrote:
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
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
does not have access to the encrypted key. I am going through the
and there is an psk-flags=0 that should tell to not use encrypted

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

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



Kind regards,

Jelle de Jong

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