what system are you running on where this file does not exist ?
it is part of the systemd-timesyncd default files so a host system having this service installed will also have the file, there should be no need to create/remove it… (in fact i think removing it would break timesyncd)
I checked your snap. You overwrite the config file using “>”. I try to delete the existing file (to clean up any possible previous configuration) and create a new file. Deletion part works, creation does not.
Why should deleting and re-creating the file be an issue?
well, effectively I dont overwrite but replace the file with its own modified content … this is because “sed -i” (in-place replacement) requires to create a .swp file in the same dir which the timeserver-control interface simply does not grant permission to do …