Yes, it's a duplicate. The reason you don't get the error as root is because only root can write to the config file.
Yes, it's a duplicate. The reason you don't get the error as root is because only root can write to the config file.