LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2005, 01:58 PM   #1
hellodio
Member
 
Registered: Oct 2005
Posts: 33

Rep: Reputation: 15
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

Last edited by hellodio; 11-15-2005 at 02:18 PM.
 
Old 11-15-2005, 02:14 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 11-15-2005, 02:37 PM   #3
hellodio
Member
 
Registered: Oct 2005
Posts: 33

Original Poster
Rep: Reputation: 15
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...
 
Old 11-15-2005, 02:41 PM   #4
hellodio
Member
 
Registered: Oct 2005
Posts: 33

Original Poster
Rep: Reputation: 15
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
 
Old 11-15-2005, 03:48 PM   #5
hellodio
Member
 
Registered: Oct 2005
Posts: 33

Original Poster
Rep: Reputation: 15
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.... (?)

Last edited by hellodio; 11-15-2005 at 03:51 PM.
 
Old 02-21-2006, 01:42 PM   #6
sokar311
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Help

Hi, I have the same problem that you had, could you please post your configurarion file?
 
Old 05-10-2006, 11:20 AM   #7
Whiskerz
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Cups, K apps won't print, but Abiword does print tigerflag Slackware 10 01-14-2005 08:34 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
CUPS Cannot print in mozilla non-root (can as root)? mismacku Linux - Software 0 08-26-2004 03:07 AM
Print with cups rmdnet Linux - Software 0 05-21-2004 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration