[cups.general] permissions for interface filters

Michael Sweet msweet at apple.com
Mon Dec 13 21:04:09 PST 2010


On Dec 13, 2010, at 8:53 PM, Greg Saunders wrote:
> I have an old style printer "null_printer" that requires an interface filter.
> 
> On my Ubuntu machine, I had to create
> 
> /etc/cups/interfaces
> 
> as it doesn't exist by default.
> 
> /etc/cups
> drwxr-xr-x 2 root lp   4096 2010-12-13 21:14 interfaces
> 
> I added the filter
> 
> sudo lpadmin -p null_printer -i /home/greg/projects/printtrack/myfilter.py
> 
> which seems to work correctly as I have
> 
> greg at greg-laptop:~$ ls -l /etc/cups/interfaces
> -rwxr-xr-x 1 root root 141 2010-12-13 21:14 null_printer
> 
> However, submitting a job fails with the following in the cups error log:
> 
> D [13/Dec/2010:21:07:20 -0700] [Job 161] Started filter /etc/cups/interfaces/null_printer (PID 14825)
> D [13/Dec/2010:21:07:20 -0700] [Job 161] /etc/cups/interfaces/null_printer: Permission denied
> 
> Arg! I know this is simple but ...
> 
> Any ideas?

Make sure the interface script starts with "#!/bin/sh".

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list