Permissions and Processes
Last modified
Office Hours
Based on feedback I will move my Monday office hours to some time on Thursday. I will make another announcement when I finalize a time.
Quiz Feedback
- Why is 400 the minimum permissions needed by
jump.txt
? - difference between
ps x
andps aux
- why won’t
kill 1337
work?
We’ll do some experiments to check all of these.
File Permissions
- inspect the permissions of a compiled binary (e.g.
motr
) - inspect hte permissions of a regular text file (e.g.
motr.c
) - manipulate permissions of files used for input/output redirection
TODO
We didn’t make it through these list items in the ‘File Permissions’ section that I had on my notes. We will probably get through some of them next class.
- try to run
motr.c
as a command - write a simple build script
- try to run it
- set permissions
- run it
Processes and Signals
Source can be found in /usr/share/src/week5/
- What does the process ‘see’? (we didn’t do this)
- inspect argv with redirection
-
infinite_hello
example- Try
^C
- Try
kill
- Try
Setup SSH Keys (we didn’t make it this far)
$ ssh-keygen
Inspect the permissions for the ~/.ssh/
directory and its files.