Solved Only root can print using BSD printing system

After a few years our laser printer is finally back on the network thanks to some ethernet cabling and I no longer have to email print jobs to my wife's study where the printer lives.

I setup the printcap file. Created the spool directory. Started the lpd service. Lo, root can print. However, I soon discovered that I as a mere user could not. Various error messages depending on which command I used ( lpq, lpr, lp) which made little sense. So printing works, but only for the root user. Weird.

Having wandered through Prof G**g*e's search results I was still none the wiser. Time to do some debugging.

I saved the output from truss lpr print.pdf to a file for both my user and root, grepped the ERR messages and compared the two. Turns out the user version was trying to use CUPS which had been installed by various applications where there was no choice to omit it. A simple pkg delete -f cups removed it and... lo, I could now print as a mere user.

Posted for posterity should it help someone else in the same boat.
 
Back
Top