I was trying to change ownership of a hard-drive mounted on /media/user/ using command
sudo chwon -R user:user /media/user/
but I made a typo and ran command
sudo chwon -R user:user / /media/user/
Now everything in /
is set to user(username) user(group). This system is used by me and my collegue and we cannot ssh into it since permissions have been changed. How do I revert it back to normal ?
sudo chown -R root:root /etc
and other folders`, to allow SSH login to the system, you'll be able to use it for creating backup of the important staff, and follow by re-installing the systemsudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set