Skip to content

Instantly share code, notes, and snippets.

@pandaninjas
Created April 7, 2023 05:47
Show Gist options
  • Save pandaninjas/aee651169f45662a1b0707f3fcde2392 to your computer and use it in GitHub Desktop.
Save pandaninjas/aee651169f45662a1b0707f3fcde2392 to your computer and use it in GitHub Desktop.

Things to remember when using Linux

Directories need to be executable to be used

pandaninjas@kaptop:/tmp$ mkdir test
pandaninjas@kaptop:/tmp$ chmod 600 test/
pandaninjas@kaptop:/tmp$ ls -lah test
ls: cannot access 'test/.': Permission denied
ls: cannot access 'test/..': Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
pandaninjas@kaptop:/tmp$ chmod 700 test/
pandaninjas@kaptop:/tmp$ ls -lah test
total 0
drwx------  2 pandaninjas pandaninjas  40 Apr  6 22:46 .
drwxrwxrwt 20 root        root        520 Apr  6 22:46 ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment