#!/bin/sh
# We need to have a group for security, and for general users.
groupadd security || :
groupadd vcsuser || :
# Note: Enabling anonymous access to the repository means that we are allowing
# anyone to login to the server as the vcsguest account.  The security measures
# that we have in place for this are that scponlyc logs them into a chroot
# where they only have sftp access to the repository files.
#
# Further, none of the files in the chroot belong to users that can log in
# this way.
./user.sh vcsguest
# Blank the vcsguest passwd.
sed -i 's/\(^vcsguest:\)!!:/\1:/' /etc/shadow
