From cb3698b6da271b3614101b5ac2f4cb315b0da948 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Feb 2014 12:58:55 +0100 Subject: [PATCH] just being safe --- lbuild-initvm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.0