This looks rather fragile...
# Correct ownership of personal HPLIP config files of the users # (in older HPLIP versions hp-setup created these files with root # permissions and made hp-toolbox crashing) for line in `cat /etc/passwd | sed -e 's/ //g'`; do user=`echo $line | cut -d : -f 1`; homedir=`echo $line | cut -d : -f 6`; [ -d $homedir ] && \ find $homedir -maxdepth 1 -not -user $user -name .hplip* \ -exec chown $user '{}' \; 2>/dev/null || : done
This looks rather fragile...
# Correct ownership of personal HPLIP config files of the users
user= `echo $line | cut -d : -f 1`;
homedir= `echo $line | cut -d : -f 6`;
find $homedir -maxdepth 1 -not -user $user -name .hplip* \
- exec chown $user '{}' \; 2>/dev/null || :
# (in older HPLIP versions hp-setup created these files with root
# permissions and made hp-toolbox crashing)
for line in `cat /etc/passwd | sed -e 's/ //g'`; do
[ -d $homedir ] && \
done