September 11 2017 | File::Path Security | Back Next |
QUIZ: Can I still edit that plain-text file even if I cannot delete it?
Yes, I can
$ echo "hello world" >> /tmp/explain-write/gamma
$ ls -l /tmp/explain-write/ total 4 -rw-r--r-- 1 jkeenan wheel 12 Jul 17 21:27 gamma
$ cat /tmp/explain-write/gamma hello world
I am still the owner of the file and I still have write permissions on the file
But I no longer have write permissions on the directory where the file sits
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |