Bugzilla – Bug 118982
permissions for /etc/cups/lpoptions depend on umask
Last modified: 2005-11-23 11:16:06 UTC
The file /etc/cups/lpoptions is not owned by any package. Therefore it will not exist after CUPS package installation. How to reproduce when /etc/cups/lpoptions does not exist: root@host# umask 077 root@host# lpoptions -d queue root@host# ls -l /etc/cups/lpoptions -rw------- 1 root root ... /etc/cups/lpoptions Now when a normal user runs "lpstat -d", he gets a wrong default queue. There is no warning or error message when /etc/cups/lpoptions cannot be read (see bug #118766). Proposals for a solution: Either the lpoptions command creates it with appropriate owner and permissions or we should have an empty /etc/cups/lpoptions in our RPM with the following permissions: -rw-r--r-- lp lp Note: Normally YaST printer config creates it as -rw-r--r-- 1 root root 0 ... /etc/cups/lpoptions when it runs at the end of the installation. But I think it should work even without YaST.
Thanks. Will work on it as scheduling and time permits.
fixed in next version.