I'm using a VM hosted on G Cloud and a few weeks ago I executed a sudo chown command
like: sudo chown -R Username / (not sure on how exactly the command was) to get full access on my VS Studio IDE.
After executing I wasn't able to use the SSH popup on the G Cloud website anymore. Now I want to upload files to my VM and the only way I know is by using the SSH popup.
I still have access via my IDE but I don't know on how to regain access via the SSH popup.
Can I regain access via SSH by giving access? I don't want to execute something which might destroy my last access point so I ask for help before executing anything.
Any help would be greatly appreciated!
sudo chown -R $USER? I also have access to the logs and all. I'm just unexperienced with Linux. – Rocket Aug 17 '23 at 11:18sudowhich gives you unrestricted administrative rights to the system, so it can't protect you from mistakes. You then changed the ownership of every file on the system, breaking its security capability. As a result you will now not be able to use the system. Restore from your latest backup. – Chris Davies Aug 17 '23 at 11:30