LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2004, 08:17 AM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
cus printing problem - /var/spool (permission denied)


Hi!

I just upgrade cups to 1.1.21. But I don't think that is the issue here.

I am getting this error on my web interface (CUPS)


Printer State: idle, accepting jobs.
"unable to open print file "/var/spool/cups/d00117-001" - Permission denied"
Device URI: parallel:/dev/lp0


The printer shows that it receive some message from the comp cause the printer led start blinking and another one just lit up (normally it is not).

It is a HP Laserjet 2100TN.

Last edited by carboncopy; 09-28-2004 at 08:21 AM.
 
Old 09-28-2004, 08:53 AM   #2
wes103
LQ Newbie
 
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
What are the permissions and ownerships on /var/spool/cups/? Just a guess, but either the new cups is looking to a different place for it's spool directory than the old one did, or it's running as a different user.

-Bill
 
Old 09-28-2004, 09:10 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
/var/spool/cups is rwx--x--- root root

Hmm.. other users do not have permission to read or write to eat. Strange.
should I change it? What should I change it to?
 
Old 09-28-2004, 09:38 AM   #4
wes103
LQ Newbie
 
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
Well, just as a test, you could change the permissions on the directory to 0777 (rwxrwxrwx) and try printing, and see what happens. I wouldn't leave it set that way, but it might give a clue.

I think the next thing to check is what user cups is running as:

ps aux | grep cups

If that shows something other than "root", then you need to change the ownership of the directory to that user. If that does show "root", then I don't know what to look at next. I guess you'd have to start ferretting around in the cups configuration files. (Being an LPRng user, I can't help too much with those.)

As for the users spooling jobs into this directory, I think that is done via an entry in inetd.conf for cups-lpd. I would reckon this runs as the same user as cupsd. I suppose you could telnet to the printer port, and while that session is open, do the ps command above again, and make sure who it is running as.

-Bill
 
Old 09-28-2004, 09:49 AM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
I changed it to +r with no success.

ps aux | grep cups
shows it running as root alright.

The other odd thing is that in /var/spool/cups there is no file which starts with d*
but all starts with c*

I guess I need to play around with /etc/cups/cupsd.conf. Will do that tomorrow. Getting late here.
 
Old 09-28-2004, 09:51 AM   #6
wes103
LQ Newbie
 
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
Try changing it with "chmod 0777 /var/spool/cups". That will get you the write perms too.

-Bill
 
Old 10-26-2004, 09:25 AM   #7
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
--BUMP--

Has this been solved? If so, what did the trick? I'm having the same problem all of a sudden...

Cheers, Leon.
 
Old 10-27-2004, 04:15 AM   #8
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Nope, haven't been resolve yet. Well work on it tonight since this isn't an isolated case now.
 
Old 11-04-2004, 05:05 AM   #9
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Re: cus printing problem - SOLVED!

Quote:
Originally posted by carboncopy
I just upgrade cups to 1.1.21. But I don't think that is the issue here.

I am getting this error on my web interface (CUPS)


Printer State: idle, accepting jobs.
"unable to open print file "/var/spool/cups/d00117-001" - Permission denied"
Device URI: parallel:/dev/lp0

For me, the problem 'solved itself' after an upgrade of samba in Slack-current! WEEEHOOOOO!!! Printing again, what a relief ;-)
Still no clue what caused it though...

Cheers, Leon.
 
Old 11-11-2004, 03:18 AM   #10
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
am able to print garbage now. sigh...
 
Old 11-11-2004, 03:28 AM   #11
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Have had a similar problem when first setting up the printing stuff. After figuring out the right Device URI in CUPS (http://localhost:631) that was solved.
I am printing over a LAN with the following syntax in cups:
Quote:
Device URI: socket://130.232.59.159:9100/fyg_colorlaser
The above is in Slack.
In Debian, I had to change it to
Quote:
Device URI: http://130.232.59.159:631/ipp
Hope this is of some help to you.

Cheers, Leon.

Last edited by BroX; 11-11-2004 at 03:30 AM.
 
  


Reply



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
Permission Denied when trying to delete /var robintw Linux - General 4 09-17-2005 02:00 PM
/var/log/news permission denied tt08 Linux - Newbie 4 10-30-2004 10:19 AM
Printing permission denied johnwr Linux - Hardware 3 10-25-2004 07:52 PM
Printing from Mozilla creates 200Mb files in /var/spool/cups mikeyt_333 Linux - Software 3 05-23-2004 12:47 PM
Permission denied @ /var/log/mail Thorsten Linux - Software 1 11-03-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:52 PM.

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
Open Source Consulting | Domain Registration