mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-08-05 01:02:28 +00:00
parent
322ec10c43
commit
74f33dc4fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue