[cups.general] "Permission Denied" when accessing cgi files

Michael R Sweet msweet at apple.com
Thu Nov 13 17:19:35 PST 2008


James Mills wrote:
> I am have cross compiled cups 1.2.12 for an ARM Linux machine running OpenEmbedded.
> 
> It compiles fine, and starts up fine.  However, when I try and access any of the backend cgi, I get the following error:
> 
> D [13/Nov/2008:14:20:33 +0000] cupsdReadClient: 9 GET /printers/ HTTP/1.1
> D [13/Nov/2008:14:20:33 +0000] cupsdReadClient: 9 Browser asked for language "en-us.utf-8"...
> D [13/Nov/2008:14:20:33 +0000] cupsdAuthorize: No authentication data provided.
> I [13/Nov/2008:14:20:33 +0000] commptr=""
> D [13/Nov/2008:14:20:33 +0000] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 2858
> I [13/Nov/2008:14:20:33 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2858)
> D [13/Nov/2008:14:20:33 +0000] cupsdSendCommand: 9 file=11
> E [13/Nov/2008:14:20:33 +0000] PID 2858 (/usr/lib/cups/cgi-bin/printers.cgi) stopped with status 22!
> D [13/Nov/2008:14:20:33 +0000] [CGI] /usr/lib/cups/cgi-bin/printers.cgi: Permission denied
> 
> I can manually run the cgi files (as root), and get the DEBUG and HTML output I expect.
> 
> I have tried various things to do with permissions, including setting 777 permissions on /usr/lib/cups and /usr/share/cups, but nothing is helping.

What are the permissions of all of the directories leading up to
the CGI files themselves?  Also, are the CGI files executable and
readable by all users?

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list