mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-07 17:02:30 +00:00
Added comments.
This commit is contained in:
parent
467b8c9c06
commit
72dbb4c75d
@ -71,6 +71,7 @@ chroot ${mount_d} apt-get clean
|
|||||||
# Create and setup users inside the image.
|
# Create and setup users inside the image.
|
||||||
# Vagrant users expect a "vagrant" user with a "vagrant" username.
|
# Vagrant users expect a "vagrant" user with a "vagrant" username.
|
||||||
# See https://www.vagrantup.com/docs/boxes/base.html
|
# See https://www.vagrantup.com/docs/boxes/base.html
|
||||||
|
# Note: We decided NOT to allow root login with a default password.
|
||||||
chroot ${mount_d} useradd -m vagrant -s /bin/bash
|
chroot ${mount_d} useradd -m vagrant -s /bin/bash
|
||||||
echo "vagrant:vagrant" | chroot ${mount_d} chpasswd
|
echo "vagrant:vagrant" | chroot ${mount_d} chpasswd
|
||||||
|
|
||||||
@ -79,9 +80,6 @@ cat << EOF > ${mount_d}/etc/sudoers.d/vagrant
|
|||||||
vagrant ALL=(ALL) NOPASSWD:ALL
|
vagrant ALL=(ALL) NOPASSWD:ALL
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# We should permit root login with password :(
|
|
||||||
#sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/g' ${mount_d}/etc/ssh/sshd_config
|
|
||||||
|
|
||||||
# Add the insecure vagrant pubkey to the vagrant user, as is expected by the
|
# Add the insecure vagrant pubkey to the vagrant user, as is expected by the
|
||||||
# vagrant ecosystem (https://www.vagrantup.com/docs/boxes/base.html)
|
# vagrant ecosystem (https://www.vagrantup.com/docs/boxes/base.html)
|
||||||
chroot ${mount_d} chmod 0440 /etc/sudoers.d/vagrant
|
chroot ${mount_d} chmod 0440 /etc/sudoers.d/vagrant
|
||||||
|
Loading…
x
Reference in New Issue
Block a user