I'm trying to set up a git user, but am getting the error
useradd: cannot create directory /srv/data/git when running this command
sudo useradd \ --create-home \ --skel /dev/null \ --home-dir /srv/data/git \ --shell /usr/bin/git-shell \ --comment 'Web Archive VCS' \ git
Why am I having trouble? When creating the directory first, (
mkdir -p /srv/data/git) I receive the following two errors/warnings.
useradd: warning: the home directory already exists. Not copying any file from skel directory into it.
This should be very straight forward, but is having issues for unknown reasons to me