subu_add permission on home directory
authorThomas Walker Lynch <thomas.walker.lynch@gmail.com>
Thu, 12 May 2022 15:23:20 +0000 (17:23 +0200)
committerThomas Walker Lynch <thomas.walker.lynch@gmail.com>
Thu, 12 May 2022 15:23:20 +0000 (17:23 +0200)
executable/subu_add

index 3e6ad5a..d1359c2 100755 (executable)
@@ -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