LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I can only print as root in cups, why???? (https://www.linuxquestions.org/questions/linux-newbie-8/i-can-only-print-as-root-in-cups-why-383425/)

hellodio 11-15-2005 01:58 PM

I can only print as root in cups, why????
 
I cannot print when I am logged in as a user (JohnDoe). I can only print as root.

I tied some things that were recommended on other internet forums like:

- Give everybody rwx rights in the directory /etc/cups/
- Add the following text to /etc/cups/printer.conf: "AllowUser JohnDoe"
- Add myself to the groups wheel and lp
- Yast
- Read the cups Help documentation (still in progress, and I will be for 1.000 years...)

But nothing works! Getting desperate here....

(I use OpenSuse 10, cups, canon i20 with Canon's drivers for it.)

P.S. Another thing that does not seems to work: lpadmin -pi250 -u allow:JohnDoe

Andrew Benton 11-15-2005 02:14 PM

edit /etc/cups/cupsd.conf and change loglevel to debug, then it will be more verbose in /var/log/cups/error_log, it may give you a clue where the error lies.
Also, this is just a wild guess, but do you have permission to write in /var/spool/cups/tmp? As root do
Code:

chmod 755 /var/spool/cups
chmod 1777 /var/spool/cups/tmp


hellodio 11-15-2005 02:37 PM

Quote:

Originally posted by Andrew Benton
edit /etc/cups/cupsd.conf and change loglevel to debug, then it will be more verbose in /var/log/cups/error_log, it may give you a clue where the error lies.
Also, this is just a wild guess, but do you have permission to write in /var/spool/cups/tmp? As root do
Code:

chmod 755 /var/spool/cups
chmod 1777 /var/spool/cups/tmp


Thank you very much for your superfast reply!

1. The eror log, after setting loglevel to debug:
Code:

I [15/Nov/2005:21:20:59 +0100] Adding start banner page "none" to job 37.
I [15/Nov/2005:21:20:59 +0100] Adding end banner page "none" to job 37.
I [15/Nov/2005:21:20:59 +0100] Job 37 queued on 'i250' by 'JohnDoe'.
I [15/Nov/2005:21:20:59 +0100] Started filter /usr/lib/cups/filter/texttops (PID 23335) for job 37.
I [15/Nov/2005:21:20:59 +0100] Started filter /usr/lib/cups/filter/pstops (PID 23336) for job 37.
I [15/Nov/2005:21:21:00 +0100] Started filter /usr/lib/cups/filter/pstocanonbj (PID 23337) for job 37.
I [15/Nov/2005:21:21:00 +0100] Started backend /usr/lib/cups/backend/usb (PID 23338) for job 37.
E [15/Nov/2005:21:21:00 +0100] PID 23337 stopped with status 0!
I [15/Nov/2005:21:21:00 +0100] Hint: Try setting the LogLevel to "debug" to find out more.

It seems to me that the executable "pstocanonbj" (PID 23337) cannot be executed. However, everybody has execute rights....

2. Everybody has rights to the /var/spool/cups directory...

hellodio 11-15-2005 02:41 PM

P.S. If I try to restart my print job in a web browser on http://localhost:631 I get the following:
Code:

Error:  client-error-not-possible

hellodio 11-15-2005 03:48 PM

It works now (after a reboot too). I think you have to fiddle with the file /etc/cups/cupsd.conf

When rebooted, this file is owned by lp and group = lp.

Make sure you're a member of lp. I changed a lot of other things too. But I think this is the trick.

I yhink one may not change rights of ALL the files in that dir.... (?)

sokar311 02-21-2006 01:42 PM

Help
 
Hi, I have the same problem that you had, could you please post your configurarion file?

Whiskerz 05-10-2006 11:20 AM

I have also run into this problem, so maybe you could give a few more hints on what you did. I started out doint the same as you, adding myself to the groups, adding AllowUser, setting the permissions as has been suggested by Andrew, so I am pretty sure that being in the group "lp" doesn't help for me.

I use OpenSuse 10.0 as well, cups and a KonicaMinolta 2430DL with the foo2zjs driver. Symptoms exaclty as you described them, only prints when root sends the job otherwise it shows up as completed but doesn't print, restarting not possible.

You mentioned fiddling with cupsd.conf - what did you do in that file exaclty if you remember?


All times are GMT -5. The time now is 04:06 AM.