From e75179eb577b86012964879f5d748f558873a17d Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Wed, 29 May 2024 19:32:18 +0800 Subject: [PATCH] fix(testbed/cron): chown :nasp --- scripts/testbed_cron.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/testbed_cron.sh b/scripts/testbed_cron.sh index c9f299b..cbff88a 100755 --- a/scripts/testbed_cron.sh +++ b/scripts/testbed_cron.sh @@ -22,7 +22,7 @@ touch_user() { su - $1 -c "true" mkdir -p /home2/$1 - chown $1: /home2/$1 + chown $1:nasp /home2/$1 } update_key() { @@ -37,12 +37,12 @@ update_key() { if [[ ! -d "$dest_dir" ]]; then mkdir -p "$dest_dir" - chown $1:$1 "$dest_dir" + chown $1:nasp "$dest_dir" chmod 700 "$dest_dir" fi cat "$tmp_path" > "$dest_path" rm "$tmp_path" - chown $1:$1 "$dest_path" + chown $1:nasp "$dest_path" chmod 600 "$dest_path" }