September 11 2017 | File::Path Security | Back Next |
QUIZ: Can I still read the contents of that directory?
Yes, I can.
$ ls -ld /tmp/explain-write/ drwxr-xr-x 2 root wheel 512 Jul 17 21:14 /tmp/explain-write/
$ ls -l /tmp/explain-write/ total 0 -rw-r--r-- 1 jkeenan wheel 0 Jul 17 21:21 gamma
QUIZ: Can I still create a plain-text file in that directory?
No, I cannot
$ touch /tmp/explain-write/delta touch: /tmp/explain-write/delta: Permission denied
QUIZ: Can I can delete that plain-text file from that directory?
No, I cannot
$ rm /tmp/explain-write/gamma rm: /tmp/explain-write/gamma: Permission denied
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |