Bug 16264

Summary: cups ppd permissions borked again
Product: Mageia Reporter: Frank Griffin <ftg>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: makowski.mageia, marja11
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: cups CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 18367    

Description Frank Griffin 2015-07-01 13:20:34 CEST
The files in /etc/cups/ppd are created root:sys and rw-r-----.  When you try to print, cups writes error messages saying that it can't open these files.  If you change the perms to 777, it works fine.

This keeps happening to cups periodically, usually with permissions on USB devices that are created via dbus, but in this case with the ppd files.  cups changes the uid under which it runs, and the perms on ancillary files don't get changed to reflect this.

Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2015-07-01 17:33:41 CEST
777 permissions are most certainly incorrect and just asking for trouble!

I get root:sys 644 on the files in that directory, which is correct.  On a system in msec secure mode I see root:root 644 in there instead, which should also be fine.

What exactly is creating files with those permissions on your system?  Have you changed any umask settings?
Marja Van Waes 2016-05-05 10:22:15 CEST

Blocks: (none) => 18367

Comment 2 Marja Van Waes 2016-08-10 19:41:19 CEST
On the 25th of July, Phillipem uploaded the following packages to 
Cauldron's core/updates_testing:

    system-config-printer-1.5.7-5.mga6.i586
    system-config-printer-applet-1.5.7-5.mga6.i586
    system-config-printer-udev-1.5.7-5.mga6.i586

    system-config-printer-libs-1.5.7-5.mga6.noarch

    system-config-printer-1.5.7-5.mga6.x86_64
    system-config-printer-applet-1.5.7-5.mga6.x86_64
    system-config-printer-udev-1.5.7-5.mga6.x86_64


@ Anyone reading this:

* If this bug is valid for you in cauldron, then please test whether updating your system-config-printer packages to version 1.5.7-5.mga6 fixes the problem and report back in this bug report.

* If you do not have this bug in cauldron, but you do run cauldron, then please update those packages, too, and report in bug 18367 whether they work as expected.

CC: (none) => makowski.mageia, marja11

Comment 3 Samuel Verschelde 2016-11-01 13:28:05 CET
Frank, please answer comment 1 and comment 2. Thanks!

Keywords: (none) => NEEDINFO

Comment 4 Samuel Verschelde 2016-11-01 13:29:07 CET
Assigning to cups maintainer Thierry Vignaud. Please reassign if needed.

Assignee: bugsquad => thierry.vignaud

Comment 5 Frank Griffin 2016-11-01 14:05:14 CET
Closing as FIXED, because on a fresh install the ownership of these files is back to root:lp as it should be.

Status: NEW => RESOLVED
Resolution: (none) => FIXED