CS360: Exam 1: 10/22/97. Question 1 (10 points)
This question concerns the setuid bit:
- Part 1: Describe what the setuid bit is,
and what it means when a file has the setuid bit set.
- Part 2: Suppose you want to enable users to append to a log file
that you own. Describe how the setuid bit can be used to achieve this
goal, and why you can't achieve it without the setuid bit.
- Part 3: Suppose you want to enable users to read only the first
line of a file that you own.
Describe how the setuid bit can be used to achieve this
goal, and why you can't achieve it without the setuid bit.