Skip to content

Instantly share code, notes, and snippets.

@camilajenny
Created September 3, 2018 09:12
Show Gist options
  • Save camilajenny/3214a50992ac9007ce61fb92ecde91b9 to your computer and use it in GitHub Desktop.
Save camilajenny/3214a50992ac9007ce61fb92ecde91b9 to your computer and use it in GitHub Desktop.
chmod so that others have all permissions to all files recursively
find . -type d -exec chmod 777 {} \;
find . -type f -exec chmod 666 {} \;
find . -type f -executable -exec chmod 777 {} \;
@camilajenny
Copy link
Author

camilajenny commented Sep 3, 2018

sudo chown -R --from=2345 1000 /
if your old UID is 2345 and the new one is 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment