[cups.general] Incorrect default printer

Till Kamppeter till.kamppeter at gmx.net
Sat Jan 21 06:06:30 PST 2006


There is also /etc/cups/lpoptions which has priority against
/etc/cups/printers.conf. To change settings in /etc/cups/lpoptions, use
the lpoptions command as root. the lpoptions command as user sets
personal defaults in the ~/.lpoptions file.

   Till


David Sumbler wrote:
> I had a problem printing something earlier yesterday - basically, a
> script was trying to print something as root - please don't ask why! -
> but nothing printed.
> 
> I soon discovered that the problem was that the output was being sent
> to printer PSC, my inkjet printer, which was not switched on.  I wanted
> it sent to HP4, which is set as my default printer.
> 
> Investigating further, I find that /etc/cups/printers.conf correctly
> defines HP4 as the default printer, and that if I am logged in as a
> user, this works fine.  And when, as a user, I execute the command
> 'lpstat -d', the response is, as expected, "system default
> destination: HP4"
> 
> But if, as root, I do 'lpstat -d', I get "system default destination:
> PSC", and even after doing 'lpadmin -d HP4', I still get told that PSC
> is the default, so I don't even seem to be able to change it.
> 
> I've looked in root's .bash_profile and .bashrc, and there's nothing
> there to explain it.
> 
> I'm mystified.  Does anyone have any ideas where else should I look to
> find out why root has PSC set as the default printer in the first
> place, and why I can't change it?
> 
> David
> 





More information about the cups mailing list