diff --git a/src/ks-upa b/src/ks-upa index cfe2d4e..b99c2e0 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -563,6 +563,7 @@ function editConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" @@ -667,6 +668,7 @@ function createConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" diff --git a/src/ks-upf b/src/ks-upf index 4f1eda7..ffb3208 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -590,6 +590,7 @@ function editConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" @@ -694,6 +695,7 @@ function createConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" diff --git a/src/ks-upr b/src/ks-upr index b042bc8..cc12271 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -449,6 +449,7 @@ function editConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" @@ -553,6 +554,7 @@ function createConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" diff --git a/src/ks-upv b/src/ks-upv index 6ac7e13..419a938 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -563,6 +563,7 @@ function editConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" @@ -667,6 +668,7 @@ function createConfig() { encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}") echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass cp -rf "${pem_path}" ${dirConfig}/connect.pem + chmod 600 ${dirConfig}/connect.pem echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist"