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
** Visibility changed to: Public
--
Changes ownership of root directory to hplip:lp
https://bugs.launchpad.net/bugs/191299
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs