cupsctl can corrupt cupsd.conf if invoked by member of lpadmin group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 14.04 and 15.10, the sequence
sudo cupsctl WebInterface=No
sudo cupsctl WebInterface=Yes
always does what it is supposed to, but if a member of the 'lpadmin' group invokes
cupsctl WebInterface=No
cupsctl WebInterface=Yes
without 'sudo', /etc/cups/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
<HTML>
<HEAD>
<META HTTP-EQUIV=
<TITLE>Web Interface is Disabled - CUPS v1.7.2</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
</HEAD>
<BODY>
<H1>Web Interface is Disabled</H1>
<P>The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it.</P>
</BODY>
</HTML>
WebInterface Yes
and the cups daemon will start malfunctioning instantly.
This does not happen on CentOS or FreeBSD, so the Ubuntu package is not configured correctly.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cups 1.7.2-0ubuntu1.7
ProcVersionSign
Uname: Linux 3.13.0-76-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Jan 20 15:16:32 2016
InstallationDate: Installed on 2015-02-13 (340 days ago)
InstallationMedia: Kubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Bad file descriptor
MachineType: Hewlett-Packard HP Z600 Workstation
Papersize: a4
PpdFiles:
Buero: HP Business Inkjet 3000 PS - RC1.1 Postscript (recommended)
Testo: Generic PostScript Printer
XeroxFollowMe: Xerox Global Printer Driver PS3
ServerraumErsatz: HP LaserJet 1320 series Postscript (recommended)
Serverraum: HP Color LaserJet 4730mfp Postscript (recommended)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/19/2009
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 786G4 v01.17
dmi.board.name: 0AE8h
dmi.board.vendor: Hewlett-Packard
dmi.chassis.
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP Z600 Workstation
dmi.sys.vendor: Hewlett-Packard
tags: | removed: apparmor |
Status changed to 'Confirmed' because the bug affects multiple users.