Bug 118982

Summary: permissions for /etc/cups/lpoptions depend on umask
Product: [openSUSE] SUSE Linux 10.1 Reporter: Johannes Meixner <jsmeix>
Component: PrintingAssignee: Klaus Singvogel <kssingvo>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Enhancement    
Priority: P5 - None CC: jsmeix
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Johannes Meixner 2005-09-27 08:11:07 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.
Comment 1 Klaus Singvogel 2005-10-18 10:14:56 UTC
Thanks.
Will work on it as scheduling and time permits.
Comment 2 Klaus Singvogel 2005-11-23 11:16:06 UTC
fixed in next version.