comments reflect implementation
This commit is contained in:
parent
774e8175eb
commit
b7c29be732
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ chroot ${ROOTFS} chown -R vagrant: /home/vagrant/.ssh
|
|||
chroot ${ROOTFS} apt-get install sudo -y --force-yes
|
||||
chroot ${ROOTFS} adduser vagrant sudo
|
||||
|
||||
# Enable passwordless sudo for users under the "sudo" group
|
||||
# Enable passwordless sudo for the vagrant user
|
||||
echo "vagrant ALL=(ALL) NOPASSWD:ALL" > ${ROOTFS}/etc/sudoers.d/vagrant
|
||||
chmod 0440 ${ROOTFS}/etc/sudoers.d/vagrant
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ mkdir -p ${ROOTFS}/home/vagrant/.ssh
|
|||
echo $VAGRANT_KEY > ${ROOTFS}/home/vagrant/.ssh/authorized_keys
|
||||
chroot ${ROOTFS} chown -R vagrant: /home/vagrant/.ssh
|
||||
|
||||
# Enable passwordless sudo for users under the "sudo" group
|
||||
# Enable passwordless sudo for the vagrant user
|
||||
echo "vagrant ALL=(ALL) NOPASSWD:ALL" > ${ROOTFS}/etc/sudoers.d/vagrant
|
||||
chmod 0440 ${ROOTFS}/etc/sudoers.d/vagrant
|
||||
|
||||
|
|
Loading…
Reference in a new issue