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 ?