[cups.general] permissions for interface filters

Michael Sweet msweet at apple.com
Tue Dec 14 11:14:20 PST 2010


One more thing to check: what OS/Linux distribution are you using? If you are running Linux, it is possible that one of the enhanced security plugins (AppArmour, SELinux) is preventing cupsd from executing the interface script.

On Dec 13, 2010, at 10:13 PM, Greg Saunders wrote:

>> Make sure the interface script starts with "#!/bin/sh".
> 
> Hi Michael, I really appreciate your feedback here, it's an honour actually :)
> 
> Tried that ... no go. Going back to a real simple bash script.
> 
> greg at greg-laptop:~/projects/printtrack$ sudo lpadmin -p null_printer -i /home/greg/projects/printtrack/myfilter.sh
> 
> greg at greg-laptop:~/projects/printtrack$ ls -l /etc/cups/interfaces/
> -rwxr-xr-x 1 root root 140 2010-12-13 23:01 null_printer
> 
> greg at greg-laptop:~/projects/printtrack$ cat /etc/cups/interfaces/null_printer
> 
> -------------------
> #!/bin/sh
> 
> # Command line arguments
> job="$1"
> user="$2"
> title="$3"
> numcopies="$4"
> options="$5"
> filename="$6"
> 
> # Pass through
> cat "$filename"
> -------------------
> 
> restart ...
> 
> root at greg-laptop:/var/log/cups# service cups restart
> * Restarting Common Unix Printing System: cupsd                                             [ OK ]
> 
> submit a job ...
> 
> root at greg-laptop:/var/log/cups# lp -d null_printer /etc/hosts
> request id is null_printer-162 (1 file(s))
> 
> D [13/Dec/2010:23:07:11 -0700] [Job 162] Started filter /etc/cups/interfaces/null_printer (PID 17968)
> D [13/Dec/2010:23:07:11 -0700] [Job 162] /etc/cups/interfaces/null_printer: Permission denied
> 
> ???
> 
> I'm stumped ... I think I'm going to try this on another machine.
> 
> Thanks
> Greg
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list