- Make sure your home directory is owned by you and not world writable.
chmod 711 /home/user_name/- Make a folder called handin in your home directory.
mkdir /home/user_name/handin- Make sure your handin directory is owned by you and not world writable.
chmod 711 /home/user_name/handin- Make any number of directories within the handin directory. This is where students will hand files into.
For example, if there are 2 assignments to be turned in throughout the quarter, you might have the 2 directories p1 p2 within the handin directory, explicitly (for user cs110), ~cs110/p1 and ~cs110/p2.
- Make a users.deny file.
touch /home/user_name/handin/users.denyYou may create a users.allow file, or users.deny file, or both. Handin will check the users.allow file first, if a users name is found, access is granted, otherwise access is denied. If the file doesn't exist, users.deny is checked. Here, if a users name is found, access is denied, otherwise access is granted. If neither users.allow or users.deny is found, then no users can submit files.
Both the users.allow and users.deny file should be newline delimited lists of user names. Ex:
scott
root
smith
bobby
etc...users.allow and/or users.deny files should be placed in the handin directory as well as any handin subdirectories, unless no user access is desired within the respective directory where the files are missing.
To submit files, use the command:
handin touser hw1 file1 ... fileN
- For example, suppose we have 3 files to turn in for our ecs30 class (hello.c, hello.h, README) and that the account to submit to has been specified as cs30, in the p1 folder. To do this, we would use the command:
handin cs30 p1 hello.c hello.h README
- To check what we submitted, repeat the command without the files:
handin cs30 p1
- Files that are resubmitted will be overwritten with a newer timestamp. Also note that handin cannot submit directories.
For more information, see the man pages on handin, and rcvhandin.