$FIXTURES
environment variable.(1)
, the 'Override duplicates' option can be used to overwrite current fixtures with the same name.tar xfvz $FIXTURES/ARCHIVE.tar.gz
orunzip $FIXTURES/ARCHIVE.zip
to extract archives manually. chown -R codegrade:codegrade $FIXTURES/dir
andchmod -R 750 $FIXTURES/dir
after extracting.$FIXTURES
environment variable. This makes it harder for students to access the path, but not impossible.$FIXTURES
folder is to execute student code with the become_nobody
command. When executed in this mode, students will have no permissions to read from the $FIXTURES
folder. They will have permissions in the $STUDENT
folder, which is the current directory in which student submission files are accessible, to read and execute.$FIXTURES
directory to the $STUDENT
directory with the cp
or mv
commands will not change permissions on these files, and the nobody
user will not be able to read them. Use chmod 755 <FILE>
to properly set these or use the install
command to set these right away: install -m 755 $FIXTURES/<fixture> $STUDENT
.become_nobody
command cannot write new files to the $STUDENT
directory. Setting the write permission on the entire $STUDENT
directory may be undesirable, as students may be able to overwrite their own code during the tests. Therefore, we recommend you create a new subdirectory where the output should be written with install -Dm 777 $STUDENT/<SUBDIR>
. If this subdirectory contains files that should not be read by students, use permission 733
.