fixing file perms

This commit is contained in:
zebra 2024-07-24 15:48:24 -07:00
parent 570ffd4115
commit 72422b27f0

View File

@ -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"