From 3997df9ddc91f3660e9f782cf80d9bc6f3f3fc6a Mon Sep 17 00:00:00 2001 From: Marius Ducea Date: Fri, 1 Jul 2011 08:41:07 -0700 Subject: [PATCH] more chmod 600 on authorized_keys --- templates/Debian-5.0.8-amd64-netboot/postinstall.sh | 1 + templates/Debian-5.0.8-i386-netboot/postinstall.sh | 1 + templates/Debian-6.0.2-amd64-netboot/postinstall.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/Debian-5.0.8-amd64-netboot/postinstall.sh b/templates/Debian-5.0.8-amd64-netboot/postinstall.sh index 41648944..181db2f7 100644 --- a/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +++ b/templates/Debian-5.0.8-amd64-netboot/postinstall.sh @@ -29,6 +29,7 @@ mkdir /home/vagrant/.ssh chmod 700 /home/vagrant/.ssh cd /home/vagrant/.ssh wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys +chmod 600 /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh #Installing the virtualbox guest additions diff --git a/templates/Debian-5.0.8-i386-netboot/postinstall.sh b/templates/Debian-5.0.8-i386-netboot/postinstall.sh index 41648944..181db2f7 100644 --- a/templates/Debian-5.0.8-i386-netboot/postinstall.sh +++ b/templates/Debian-5.0.8-i386-netboot/postinstall.sh @@ -29,6 +29,7 @@ mkdir /home/vagrant/.ssh chmod 700 /home/vagrant/.ssh cd /home/vagrant/.ssh wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys +chmod 600 /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh #Installing the virtualbox guest additions diff --git a/templates/Debian-6.0.2-amd64-netboot/postinstall.sh b/templates/Debian-6.0.2-amd64-netboot/postinstall.sh index aa2325ed..be6a8b52 100644 --- a/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +++ b/templates/Debian-6.0.2-amd64-netboot/postinstall.sh @@ -27,6 +27,7 @@ mkdir /home/vagrant/.ssh chmod 700 /home/vagrant/.ssh cd /home/vagrant/.ssh wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys +chmod 600 /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh #the netboot install the virtualbox stuff so we have to remove it