Skip to Main Content

General Cloud Infrastructure

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help! I messed up permissions for everything and now I cant sudo and undo it!!!!

Joe BidenDec 15 2023

I ran the command chown -R caddy:caddy /

because I thought it would get rid of another problem about after that my instance was acting weird so I restarted it and I tried to undo the changes but I couldn't sudo because “sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set” and when i do "su -" it asks me for a password even though I never had to use a password when doing sudo su before and I sshed with a key.

Please help, What can I do to gain sudo and revert the changes?

Comments
Post Details
Added on Dec 15 2023
0 comments
352 views