September 11 2017 | File::Path Security | Back Next |
QUIZ: As a regular user, can I still see that the directory exists?
$ ls -ld /tmp/explain-execute/ drwxrw-rw- 2 root wheel 512 Jul 18 12:57 /tmp/explain-execute/
Yes, I can
QUIZ: As a regular user, can I get any information about the text file other than its name?
$ ls -l /tmp/explain-execute/ ls: epsilon: Permission denied total 0
$ ls /tmp/explain-execute/ epsilon
No, I cannot
QUIZ: As a regular user, can I still write to that file?
$ echo "goodbye world" >> /tmp/explain-execute/epsilon cannot create /tmp/explain-execute/epsilon: Permission denied
No, I cannot
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |