user=root, group=spot
and folder read and execute permissions are given to typically user and group. This scheme won't work if either:
1. A user is not in group sport or;
2. The group permission of the folder is root.
So one can run into issues if a folder in either LD_LIBRARY_PATH, PATH or /etc doesn't have both read and execute permission for the folder. If for some reason this occurs (I had issues on TazPup64), here is a script to fix it:
Code: Select all
#!/bin/bash
#
#IFS=: read -r -d '' -a path_array < <(printf '%s:\0' "$MANPATH")
#
_(){
echo "$*"
}
CONFIG_DIRS="/etc:" #For some reason we need a caracter to end the aray.
for path_list_name in LD_LIBRARY_PATH PATH CONFIG_DIRS; do
while IFS=\0 read -r -d '' a_path; do
if [ -d "$a_path" ] && \
[ "`stat -c '%U %G' $(_ $a_path)`" = "root root" ]; then
chmod 775 $a_path
fi
done < <(echo "`eval $(_ echo '$'$path_list_name)`" | tr ':' '\0' )
done
#exit 0