Implement home exam server.

This commit is contained in:
Andreas B. Mundt 2022-10-22 16:44:05 +02:00
parent 147fddc772
commit f4f0795e80
10 changed files with 248 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/bash
#
# Prepare Downloads directory.
set -eu
HDIRS='/home/'
if [[ ! -d "$HDIRS/$PAM_USER/Downloads" ]] && [[ ! "$PAM_USER" =~ ^L_ ]] && \
[[ ! "$PAM_USER" =~ ansible ]] ; then
mkdir --mode=0777 "$HDIRS/$PAM_USER/Downloads"
fi