Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-28-2004, 08:17 AM
|
#1
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
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.
|
|
|
09-28-2004, 08:53 AM
|
#2
|
LQ Newbie
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21
Rep:
|
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
|
|
|
09-28-2004, 09:10 AM
|
#3
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Original Poster
Rep:
|
/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?
|
|
|
09-28-2004, 09:38 AM
|
#4
|
LQ Newbie
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21
Rep:
|
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
|
|
|
09-28-2004, 09:49 AM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Original Poster
Rep:
|
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.
|
|
|
09-28-2004, 09:51 AM
|
#6
|
LQ Newbie
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21
Rep:
|
Try changing it with "chmod 0777 /var/spool/cups". That will get you the write perms too.
-Bill
|
|
|
10-26-2004, 09:25 AM
|
#7
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
--BUMP--
Has this been solved? If so, what did the trick? I'm having the same problem all of a sudden...
Cheers, Leon.
|
|
|
10-27-2004, 04:15 AM
|
#8
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Original Poster
Rep:
|
Nope, haven't been resolve yet. Well work on it tonight since this isn't an isolated case now.
|
|
|
11-04-2004, 05:05 AM
|
#9
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
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.
|
|
|
11-11-2004, 03:18 AM
|
#10
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Original Poster
Rep:
|
am able to print garbage now. sigh...
|
|
|
11-11-2004, 03:28 AM
|
#11
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|