Re: Can I manually edit /etc/NetworkManager/system-connections/*

There's no problem with editing those files, but they need to be owned root:root and 600 permissions. 

Use `nmcli con reload` to load the files after you create/modify them. Then, nmcli con <con_name> up to activate. This was a recent change to NM to not autoload modifications.

You could look at using nmcli to create the connections, but it's basically no different than writing the keyfiles yourself. There is an integrated editor to nmcli and a separate curses application, nmtui, if you want something more interactive for your users.

Dan's blog post,, covers some of these features. 


On Thu, Sep 25, 2014 at 8:52 PM, Ravi Parimi <rparimi gmail com> wrote:
Forgive me if this is a FAQ or has already been answered elsewhere. I
read through a few man pages and searched the archives but didn't find
anything related to my question.

I'm trying to provide a text-based user interface to a linux system
wherein a user will enter IP address settings that need to be
configured on the host. I later convert this data into
NetworkManager-friendly format and write it directly to

For e.g I convert the user-input data for static IP settings into:


On my jessie/sid debian, these settings take effect soon after I write
the file. However, the same procedure doesn't work on Ubuntu 14.04.1.
Is there an additional step (such as send SIGHUP to network-manager
etc.) that is needed for NM to apply the settings?

Is this method of directly editing the file under system-connections
recommended/correct? If not, what is the best way of applying changes
via the CLI?

networkmanager-list mailing list
networkmanager-list gnome org

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