[PATCH] foomatic-configure doesn't work on Ubuntu - owner of generated ppd files on ubuntu should be cupsys, not root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Baltix |
Fix Released
|
High
|
Mantas Kriaučiūnas | ||
foomatic-db-engine (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
foomatic-configure doesn't work on Ubuntu - owner of generated ppd files on ubuntu should be cupsys, not root
Steps to reproduce:
1. apt-get install foomatic-db-engine
2. try to add printer with foomatic-configure command - run sudo foomatic-configure -n "HP3425" -N "TEST Printer" -L "/dev/lp0" -p "HP-DeskJet_3425" -c "parallel:/dev/lp0" -d "hpijs"
Actual results:
foomatic-configure doesn't setup new printer queue correctly (needed ppd file isn't in /etc/cups/ppd/ , also in /etc/cups/
vytis@baltix-
lpadmin: add-printer (set model) failed: server-
Could not set up/change the queue "HP3425"!
Expected results:
foomatic-configure should setup new printer queue correctly (should put needed ppd file in /etc/cups/ppd/ and set DeviceURI to specified device in /etc/cups/
I've patched foomatic-configure script to set owner of generated ppd files to cupsys if user cupsys is on the system. Patched sources and ubuntu packages (recompiled for breezy (5.10)) are at
ftp://ftp.
Changed in foomatic-db-engine: | |
assignee: | nobody → pitti |
patch to make foomatic-configure work on Ubuntu-based systems, where cupd runs not as root, but as cupsys user.
added new function changeowner, which changes owner of generated ppd file only if specified user exists on system.