CLOUDSTACK-2534: Modify id_rsa.cloud's permission to 600 644 is too open for ssh.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5d70e192 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5d70e192 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5d70e192 Branch: refs/heads/object_store Commit: 5d70e1928c19dc18b0479354b24649081f79c277 Parents: a16af43 Author: Sheng Yang <[email protected]> Authored: Tue Jun 18 17:34:21 2013 -0700 Committer: Sheng Yang <[email protected]> Committed: Tue Jun 18 17:34:21 2013 -0700 ---------------------------------------------------------------------- scripts/vm/systemvm/injectkeys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5d70e192/scripts/vm/systemvm/injectkeys.sh ---------------------------------------------------------------------- diff --git a/scripts/vm/systemvm/injectkeys.sh b/scripts/vm/systemvm/injectkeys.sh index c17a3c6..f33aa50 100755 --- a/scripts/vm/systemvm/injectkeys.sh +++ b/scripts/vm/systemvm/injectkeys.sh @@ -65,7 +65,7 @@ copy_priv_key() { local newprivkey=$1 diff -q $newprivkey $(dirname $0)/id_rsa.cloud && return 0 $SUDO cp -fb $newprivkey $(dirname $0)/id_rsa.cloud - $SUDO chmod 644 $(dirname $0)/id_rsa.cloud + $SUDO chmod 600 $(dirname $0)/id_rsa.cloud return $? }
