Add SSH user with User Private Groups by default

Related to #53
This commit is contained in:
Aaron Bull Schaefer 2016-11-13 10:32:23 -08:00
parent 322ec10c43
commit 74f33dc4fe

View file

@ -4,7 +4,7 @@ PASSWORD=$(/usr/bin/openssl passwd -crypt 'vagrant')
echo "==> Enabling SSH"
# Vagrant-specific configuration
/usr/bin/useradd --password ${PASSWORD} --comment 'Vagrant User' --create-home --gid users vagrant
/usr/bin/useradd --password ${PASSWORD} --comment 'Vagrant User' --create-home --user-group vagrant
echo 'Defaults env_keep += "SSH_AUTH_SOCK"' > /etc/sudoers.d/10_vagrant
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/10_vagrant
/usr/bin/chmod 0440 /etc/sudoers.d/10_vagrant