September 11 2017 | File::Path Security | Back Next |
Directory owned by root but with wide-open permissions
$ ls -ld /tmp/explain-write/ drwxrwxrwx 2 root wheel 512 Jul 17 21:08 explain-write/
QUIZ: In that directory, can I create a plain-text file named beta?
$ touch /tmp/explain-write/beta
Yes, I can.
$ ls -l /tmp/explain-write/ total 0 -rw-r--r-- 1 jkeenan wheel 0 Jul 17 21:09 beta
And I can delete it as well.
$ rm /tmp/explain-write/beta $ ls -l /tmp/explain-write/ total 0
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |