From: Thomas Walker Lynch Date: Thu, 12 May 2022 15:23:20 +0000 (+0200) Subject: subu_add permission on home directory X-Git-Url: https://git.reasoningtechnology.com/style/rt_dark_doc.css?a=commitdiff_plain;h=719ddce6201ba73b138d7957ce8167e855a13255;p=subu subu_add permission on home directory --- diff --git a/executable/subu_add b/executable/subu_add index 3e6ad5a..d1359c2 100755 --- a/executable/subu_add +++ b/executable/subu_add @@ -35,6 +35,7 @@ sudo find "$admin_home/subu_root" -mindepth 1 -execdir cp -p {} "$subu_root" \; sudo find "$subu_root" -execdir chown "$user_subu":"$user_subu" {} \; if [[ ! -d "$subu_home" ]]; then - mkdir "$subu_home" + sudo mkdir "$subu_home" + chown "$user_subu":"$user_subu" "$subu_home" fi