user_add erin -s /bin/bash user_add frank -s /bin/bash mkdir -p /opt/tools/bin printf '#!/bin/sh\necho "lab tools are on your PATH"\n' >/opt/tools/bin/labtool chmod 755 /opt/tools/bin/labtool # Keep what the tasks change, so that reset can put it back. saved=$LAB_STATE/saved for f in /etc/skel /etc/profile.d /etc/profile /etc/environment /etc/bashrc \ /etc/bash.bashrc /etc/security/pam_env.conf /root/.bashrc /root/.bash_profile /root/.profile; do if [ -e "$f" ]; then mkdir -p "$saved${f%/*}" cp -a "$f" "$saved$f" else printf '%s\n' "$f" >>"$LAB_STATE/absent" fi done state_set profile-sum "$(sha256sum /dev/null; then restorecon -R /home/erin/.ssh /home/frank/.ssh; fi