fix: better way to make dirs executable
This commit is contained in:
parent
551b056d9f
commit
fbbb675425
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ iter_dirs(){
|
||||||
|
|
||||||
# Set permissions to read-only for the owner and not readable by others
|
# Set permissions to read-only for the owner and not readable by others
|
||||||
# folders have to be executable to be able to read their contents
|
# folders have to be executable to be able to read their contents
|
||||||
chmod -R 500 "$dir"
|
chmod -R u+rX "$dir"
|
||||||
|
|
||||||
# Check if the user exists before changing ownership and permissions
|
# Check if the user exists before changing ownership and permissions
|
||||||
if id "$username" &>/dev/null; then
|
if id "$username" &>/dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue