Quote:
Originally Posted by chrism01
[...]normally they'd be able to access the file directly as well...
|
Code:
$ cd tmp
$ echo xxx > testf
$ cat testf
xxx
$ chmod -r testf
$ cat testf
cat: testf: Permission denied
$ echo yyy > testf
$ cat testf
cat: testf: Permission denied
$ sudo cat testf
yyy
The point being that a user can have write access to a file without being able to read it.
(They could still delete it, but the context of my remark, above, was the use of a "queue" loop script to execute the commands that write to the file, where the user would only be writing to the queue, not the actual file.)