Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 674 Bytes
# Vagrant specific
date > /etc/vagrant_box_build_time
# Add vagrant user
/usr/sbin/groupadd vagrant
/usr/sbin/useradd vagrant -g vagrant -G wheel
echo "vagrant"|passwd --stdin vagrant
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
chmod 0440 /etc/sudoers.d/vagrant
# Installing vagrant keys
mkdir -pm 700 /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
chmod 0600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant /home/vagrant/.ssh
# Customize the message of the day
echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
Jump to Line
Something went wrong with that request. Please try again.