File Permissions
Self Study
Review the process fork/exec diagram:
$ ./tolower
When you type the name of a command at the prompt and press <Enter>
:
- at which point in the diagram is your permission to execute the program checked?
- what is responsible for the the check, the shell or the kernel?
and
$ ./tolower <jump.txt
When you run a command with its input or output redirected:
- at which point in the diagram is your permission to read or write to the redirected file (in this case, permission to read ‘jump.txt’) performed?
- what is responsible for performing the permission check, the shell or the kernel?