Skip to content

Instantly share code, notes, and snippets.

@banan314
Created September 3, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banan314/3214a50992ac9007ce61fb92ecde91b9 to your computer and use it in GitHub Desktop.
Save banan314/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 {} \;
@banan314
Copy link
Author

banan314 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