From: Thierry Parmentelat Date: Wed, 5 Feb 2014 11:58:55 +0000 (+0100) Subject: just being safe X-Git-Tag: before_libvirt_121~4 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=cb3698b6da271b3614101b5ac2f4cb315b0da948 just being safe --- diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index f01bf317..2fed9729 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -559,7 +559,9 @@ function setup_lxc() { # grant ssh access from host to guest mkdir $lxc_root/root/.ssh cat /root/.ssh/id_rsa.pub >> $lxc_root/root/.ssh/authorized_keys - + chmod 700 $lxc_root/root/.ssh + chmod 600 $lxc_root/root/.ssh/authorized_keys + # don't keep the input xml, this can be retrieved at all times with virsh dumpxml config_xml=/tmp/$lxc.xml ( [ -n "$BUILD_MODE" ] && write_lxc_xml_build $lxc || write_lxc_xml_test $lxc ) > $config_xml