Information Assurance |
Clay Shields |
Information Assurance |
For this assignment, you will be writing a program that provides password access to a file on the class linux system. You should use the programming skills you currently have, and avoid researching secure computing topics unless needed. Like unix, linix uses the suid bit on files to
provide a method of changing domains. Programs that need to run at a
privilege level that is higher that that of an individual user are
often owned by root and have the suid bit set, so
that when they run, they run with root's privilege level. It
is possible for others to provide access to their user domain using
suid programs as well. For this project, what you are going to do is write a suid program that will allow others to access a file in your account on ia-class.
To test your program, you can suid it to your own name and run it yourself from your secretid account. To make your program suid:
When done testing it, I recommend that you unset the suid bit by doing chmod -s <user_name>.exe. This is more secure for the files in your account. What to turn in: First, you will create a separate directory in your account on ia-class named NETID-project3 where NETID is your login. Place in this directory a copy of the source code, the executable, the text file to be accessed, and any configuration files required. Do not include any object files you create. Second, You will mail the instructor a tar file of this directory. You can create this by using the command: tar -cf NETID.tar NETID-project3 Projects are due before class on February 13, 2006. |