September 11 2017 | File::Path Security | Back Next |
Let's go to the second-level subdirectory and examine things with ls -l:
$ cd /tmp/10237_base_with_file/ $ ls -l total 28 d--------- 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0000 d--x------ 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0100 d-w------- 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0200 d-wx------ 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0300 dr-------- 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0400 dr-x------ 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0500 drw------- 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0600 drwx------ 2 jkeenan jkeenan 4096 Jul 20 13:06 foo_10237_0700
In 4 cases where I lack read permissions on the third-level subdirectory, I am denied permission to the directory.
$ ls -l foo_10237_0000/ ls: cannot open directory 'foo_10237_0000/': Permission denied $ ls -l foo_10237_0100/ ls: cannot open directory 'foo_10237_0100/': Permission denied $ ls -l foo_10237_0200/ ls: cannot open directory 'foo_10237_0200/': Permission denied $ ls -l foo_10237_0300/ ls: cannot open directory 'foo_10237_0300/': Permission denied
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |