0

I accidentally changed the ownership on my debian web server in /usr/bin and the permissions are no longer root root but instead USER root. How do I get this back everything I am finding says to restart it but I don't know how to do that through the Google Compute Engine. How do I fix this so I can use sudo?

0

Check affected files: ls -lahR /usr/bin/ | grep -v " root root"

Fix it pkexec chown -R "root:root" /usr/bin/.

pkexec - Execute a command as another user.

(from the pkexec manpage)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.