changing the ownership of the folders to vyos which will change the group to vyattacfg seems to help so that I can set the conntrack-sync in configure mode but commit also results in failure with the message Abort being shown.
I gave up and found that editing /config/config.boot directly was possible to set conntrack-sync.
But then I realized after doing all of this and once I reboot the router I can’t even do configuration on items which I previously could e.g.
vyos@<redacted># set high vrrp group <redacted> disable
Set failed
[edit]
I get the feeling it has something to do with permissions on some folders but cant seem to figure out what should be the right permissions and how come it went haywire in the first place. Anyone has any idea what should be the right permission settings for the folders to keep it permanent?
It seems your vrrp or other scripts were started from root and not from group vyattacfg
In this case you can’t configure anything
Not only conntrack-sync
You must start scripts from correct group.
sorry but I am not very familiar with where the scripts are located. Where should I be looking for these scripts? and should I just do a simple sudo chown -R vyos ./ on those folders?
On a side note wonder why its like this, I cannot remember ever doing any permission changes on any files / folders except when troubleshooting this problem. All configuration that I’ve done has been through the standard configure etc.
Would anyone happen to know how I can reset the permissions (if this is indeed the correct thing to do) or get the scripts to run using the vyattacfg group?
Right now I cant do any configuration at all using configure. All configuration results in Set failed.
Thanks real much @Viacheslav this was the one. Just noticed that this was in the guides and I totally missed it out. Thank you! sincerely much appreciated.
So is it safe to say that this is mandatory if we are running vbash scripts? I suppose if this is not set it seems like root is always used to run it.