To find out what your team directory is, type
groupsYou will see (among other things) c321axnn, where "x" is your section letter and "nn" is the number of your team. Your project directory is /project/c321axnn.
cd /project/c321axnn
cp -r /class/sce/now/321/labs/catalogs/??? /project/c321axnnwhere the '???' need to be replaced by the actual catalog name.
cd /project/c321axnn/??? chmod -R g-l,g+rwX . set-group-ID .Each partner should remember to perform the last step at the end of every working session before he/she logs out. This is to ensure that the other partner will have access to any new files that have been created during the latest working session.
Remember that there is only one copy of the assignment in the team directory. Partners are responsible for coordinating who will access the files when and to ensure that the other partner has access to all the files and directories under the group directory.
Whenever you create files in the team directory, you should check to see that your partner has permission to access the file. For example, if you use emacs to create a testfile, you will want to make that file readable for your partner so he can use it to test the assignment. The ls -al command is used to show the permissions on all the files in the current directory. The chmod command is used to change permissions.
% ls -al
total 40
drwxrwx--- 2 lohse c321aa00 512 Jun 3 15:41 .
drwxrwx--- 3 lohse c321aa00 512 Jun 3 15:41 ..
-rw-rwx--- 1 lohse c321aa00 5373 Jun 3 15:41 Kernel_2.h
-rw-rwx--- 1 lohse c321aa00 4383 Jun 3 15:41 Kernel_2_Body.h
-rw-rwx--- 1 lohse c321aa00 2528 Jun 3 15:41 Kernel_2a.h
-rw-rwx--- 1 lohse c321aa00 804 Jun 3 15:41 Kernel_2a_Body.h
-rw-rwx--- 1 lohse c321aa00 1320 Jun 3 15:41 Kernel_2a_C.h
-rw-rwx--- 1 lohse c321aa00 789 Jun 3 15:41 Kernel_2a_C_Body.h
1234567891
0 -- the first ten column positions indicate the permission status
The first character (in column 1) will be a 'd' for directory,
or a '-' for file.
Then there are three groups of three characters:
-rw------ 1 lohse c321aa00 5373 Jun 3 15:41 sampleand the owner wanted to give group members read permission, the command would be:
chmod g+r sample(the "g" stands for group the "+r" for add read permission)
To give all permissions to the group, use
chmod g+rwX sampleTo give all permissions to the group for all files in the directory, use
chmod g+rwX *To take away permissions, use "-" instead of "+". For example to prevent group members from changing file sample, take away write permission:
chmod g-w sample