Skip to content

Instantly share code, notes, and snippets.

@pfieffer
Last active November 1, 2019 06:52
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 pfieffer/c7f87e457ea9cb08ed660bb7502f7bf9 to your computer and use it in GitHub Desktop.
Save pfieffer/c7f87e457ea9cb08ed660bb7502f7bf9 to your computer and use it in GitHub Desktop.
Change the owner and permsissions to troubleshoot issues with localhost on Linux
$ ls -dl ~/files
drwx------ 9 root root 4096 2009-04-06 15:56 files
$ sudo chown grunt547:grunt547 ~/files
[sudo] password for grunt547:
$ chmod 755 ~/files
$ ls -dl ~/files
drwxr-xr-x 9 grunt547 grunt547 4096 2009-04-06 15:56 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment