cps printing problem - /var/spool (permission denied)
SlackwareThis 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.
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.
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.
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.
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...
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.