diff --git a/agent/createNewUser.sh b/agent/createNewUser.sh index ed53b6b..64e7b8f 100755 --- a/agent/createNewUser.sh +++ b/agent/createNewUser.sh @@ -8,6 +8,7 @@ echoerr() { echo "$@" 1>&2; } user=$1 class=$2 +skeldir="/srv/sauce/agent/skel" homedir="/home/$class/$user/" webdir="/srv/users/$class/$user/" dyndir="/srv/users-dyn/$class/$user/" @@ -39,6 +40,10 @@ ln -s "$homedir/.mail" "$homedir/.mailbox" ln -s $webdir "$homedir/web-docs" ln -s $dyndir "$homedir/web-dynamic" +echo "Copying in skel" + +cp -r "$skeldir/* $homedir/" + echo "Setting permissions" chown -R "$user:users" $homedir chown "$user:users" $webdir diff --git a/agent/skel/README.md b/agent/skel/README.md new file mode 100644 index 0000000..8583598 --- /dev/null +++ b/agent/skel/README.md @@ -0,0 +1,25 @@ +# Welcome to SCCS SSH! + +The Swarthmore College Computer Society welcomes you to our public SSH server. +Here, you can find free hosting utilities, tons of processing power and storage, +and more! + +## Tips and Tricks + +- web-docs: This folder in your home directory is a symlink that allows you to +host any static site you'd like. Your site will appear at +https://www.sccs.swarthmore.edu/users// + +- web-dynamic: This new addition is another symlink that drops a service onto our +Dockerized Web server, `gull`. With the proper setup, you can host a dynamic site +to any personal domain of your choice. For more info, contact us at +staff@sccs.swarthmore.edu. + +- Requesting packages: Email us with package requests--this VM runs Fedora Server, +so please find the Fedora package name. + +- Running in the background: Use a terminal multiplexor like `screen` or `tmux` to +run long, resource-intensive tasks without having to keep your terminal open. + +Enjoy! +SCCS Staff