mirror of
https://github.com/Maks1mS/alt-linux-vagrant-boxes.git
synced 2024-12-24 04:02:59 +03:00
fix
This commit is contained in:
parent
3a2ff7018a
commit
dd93be8b94
@ -1,13 +1,11 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
a= . install2-init-functions
|
|
||||||
|
|
||||||
# add vagrant's public key - user can ssh without password
|
# add vagrant's public key - user can ssh without password
|
||||||
run_chroot mkdir -pm 700 /home/vagrant/.ssh
|
mkdir -pm 700 /home/vagrant/.ssh
|
||||||
run_chroot curl -q -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
|
curl -q -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
|
||||||
run_chroot chmod 0600 /home/vagrant/.ssh/authorized_keys
|
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
||||||
run_chroot chown -R vagrant:vagrant /home/vagrant/.ssh
|
chown -R vagrant:vagrant /home/vagrant/.ssh
|
||||||
|
|
||||||
# give sudo access (grants all permissions to user vagrant)
|
# give sudo access (grants all permissions to user vagrant)
|
||||||
run_chroot echo "vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant
|
echo "vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant
|
||||||
run_chroot chmod 0440 /etc/sudoers.d/vagrant
|
chmod 0440 /etc/sudoers.d/vagrant
|
Loading…
Reference in New Issue
Block a user