mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-17 16:36:26 +00:00
Change vagrant user pasword with passwd explicitly
Signed-off-by: Hiroshi Hatake <cosmo0920.oucc@gmail.com>
This commit is contained in:
parent
6f332c96cb
commit
c7a37bcd18
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ PASSWORD=$(/usr/bin/openssl passwd -crypt 'vagrant')
|
|||
|
||||
# Vagrant-specific configuration
|
||||
/usr/bin/useradd --password ${PASSWORD} --comment 'Vagrant User' --create-home --user-group vagrant
|
||||
echo -e 'vagrant\nvagrant' | /usr/bin/passwd 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