gizero
11-16-2006, 04:30 PM
Hi all,
I have been googleing a lot around this, but found no solution or valuable hint to understand.
I need to configure and run a printer, using cups, all this from the command line.
I have successfully configured the queue with foomatic-configure (after fixing the database with foomatic-cleanup-drivers), then I use lpr to send a job to the printer. No printing starts! I enabled cups debug verbosity in the logs and figured out I have a problem writing to /var/spool/cups/tmp. This looks coherent with the permission/ownership scheme of /var/spool/cups which is :
drwx--x--- 4 root lpadmin
Since I run the server as user "lp" and group "lpadmin" (I think this is default, but I also tryed to force this setting in /etc/cups/cupsd.conf), when the filter calls "gs" as user "lp" this program is unable to access /var/spool/cups/tmp.
BTW I can succesfully print if I hack /var/spool/cups permission or if I run cupsd as root, but this doesn't sound a good solution so I ask if anyone can tell me the right way to fix it.
I also found a different suggestion for spool dir permission scheme, but I'm not sure if it apply to cups 1.1.23 (the one shipped with my Knoppix 5.0.1) at http://www.linuxprinting.org/error_log-faq.html#q_3_9. This should work for the situation but drwx--x--- is default in knoppix (and even on my Ubuntu 6.06 box). The permission/ownership also seem to be "reset" every time I restart the server, so hacking it sounds again more dirty.
TIA for any suggestion!
Andrea
I have been googleing a lot around this, but found no solution or valuable hint to understand.
I need to configure and run a printer, using cups, all this from the command line.
I have successfully configured the queue with foomatic-configure (after fixing the database with foomatic-cleanup-drivers), then I use lpr to send a job to the printer. No printing starts! I enabled cups debug verbosity in the logs and figured out I have a problem writing to /var/spool/cups/tmp. This looks coherent with the permission/ownership scheme of /var/spool/cups which is :
drwx--x--- 4 root lpadmin
Since I run the server as user "lp" and group "lpadmin" (I think this is default, but I also tryed to force this setting in /etc/cups/cupsd.conf), when the filter calls "gs" as user "lp" this program is unable to access /var/spool/cups/tmp.
BTW I can succesfully print if I hack /var/spool/cups permission or if I run cupsd as root, but this doesn't sound a good solution so I ask if anyone can tell me the right way to fix it.
I also found a different suggestion for spool dir permission scheme, but I'm not sure if it apply to cups 1.1.23 (the one shipped with my Knoppix 5.0.1) at http://www.linuxprinting.org/error_log-faq.html#q_3_9. This should work for the situation but drwx--x--- is default in knoppix (and even on my Ubuntu 6.06 box). The permission/ownership also seem to be "reset" every time I restart the server, so hacking it sounds again more dirty.
TIA for any suggestion!
Andrea