permissions for interface filters
Greg Saunders
greg at taord.com
Mon Dec 13 22:13:17 PST 2010
> 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
More information about the cups
mailing list