I needed to edit a
.config file (which I know for a fact is not creating these problems, just to clear that up) and it wouldn't let me save it, so I took ownership of
/etc and all contents with the command
chown -hR username /etc and that let me edit the
.config file but now whenever I try to install any packages or use any sudo commands, it doesn't work (I've checked for errors in the sudo file in sudoers.d and there was nothing wrong with that).
So how do I return it to the previous owner?