Stevens Institute of Technology - Department of Computer Science

CS631 Week 03 Checkpoint

To help you get the most out of this class, please fill out this short form after completing the materials and exercises for week 03.

Please enter your full name:

Please enter your Stevens username:

Identify a struct stat member not listed in the slides/videos:

Identify three setuid executables on your system.
What do they do, and why do they need to be setuid?

Consider the following file and directory information:
$ ls -ld . file
drwx-w-r-x  2 alice  apue  48 Sep 11 02:57 .
--wx--s--x  1 alice  apue   4 Sep 11 02:57 file
Which users can copy the file? Which can remove it?

Most Unix systems don't allow a non-root user to chown files.
Why not?