I have used sudo chown -R yourusername:yourusername /etc
to get access to that folder to remove some files, but now I get errors when I try to install stuff, as seen below, and can't seem to change things back to normal.
vk137@alternate:~$ sudo apt-get install pulseaudio
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
To a similar question was advised to remount the filesystem, but I can't seem to do that either:
vk137@alternate:~$ mount -o remount,rw /
mount: only root can use "--options" option
How can I put the access to /etc back in the right hands?
id
you will see many users all that may own some system files.