CNT5605 - 2009 Fall
Group Assignment 6
Journals Due Friday, October 21, at the beginning of class.

Assignment: Scripts and such

  1. First, generate a list of users from linprogX. Use getpwent(3) with whatever your favorite programming langage happens to be. Here's a C example of using getpwent(3): getpwent.c This should be should be around a thousand entries, give or take a bit. Use the linprogX machine's /etc/passwd file to filter out the local accounts, and remove those.
  2. Second, add the remaining regular usernames to your Debian machine as local users (you might to verify that no name clashes occur, though, before you proceed!) Create home directories on your Debian box, but put the home directories in /home/users/USERNAME/, not just /home/USERNAME. Have the uids start at 5000 for your new users, and make sure that each user is in a unique group. (Don't use the uids or gids from the linprog machines.) Don't assign passwords to these accounts, and no should be able to login into any of them.
  3. Finally, create a /scratch/USERNAME/ directory for each user, and make sure that it is owned by the correct user and has the correct group number.

Remember, you should never login to servers that you care about (such as the linprogX machines!) from the Networking lab, so you should first collect the username list from a safer spot, and figure out a way to get the list into the lab without having to use a trust mechanism from inside the lab itself.

A journal is due for this assignment. Make sure that you document in your journal all of the steps that you went through, following the guidelines on the class home page. Please share the workload so that all team members get experience with all aspects of the work. Do not forget to assign your work percentages to yourself and your other teammates in your journal. This assignment should be easy to partition. Please turn in a printed copy of this assignment at the beginning of class on Friday, October 21.