From 72422b27f07b2aea50ab5de7ccb7aaed1f682ecf Mon Sep 17 00:00:00 2001 From: zebra Date: Wed, 24 Jul 2024 15:48:24 -0700 Subject: [PATCH] fixing file perms --- izebra-linux-oneshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/izebra-linux-oneshot.sh b/izebra-linux-oneshot.sh index 3350dc9..dae66be 100644 --- a/izebra-linux-oneshot.sh +++ b/izebra-linux-oneshot.sh @@ -34,7 +34,7 @@ for homedir in /root /home/*; do # Set ownership to the user of the home directory echo Taking ownership of file under UID $homedir - chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/fish/config.fish" + chown -R $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/" # Optional: Set permissions to 0644 (readable by owner and group, readable by others) echo setting file perms @@ -66,7 +66,7 @@ for homedir in /root /home/*; do # Set ownership to the user of the home directory echo Setting ownership for $homedir - chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/starship.toml" + chown -R $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config" # Optional: Set permissions to 0644 (readable by owner and group, readable by others) chmod 0644 "$homedir/.config/starship.toml"