Unable to connect to cupsd: Permission denied

matthew plaga_nerezza at yahoo.com
Wed May 21 13:23:47 PDT 2008


When we try and launch the administrator tab cupsd gives a permissions denied to the admin.cgi script.  I've tried adding the user with lppasswd as well as adding them to the /etc/group file but don't know if I am doing so incorrectly or not. The cupsd daemon is running as root.  This is for RedHat Linux 4E and Cups release 1.3.7

Below is the debug2 sections relating to this question.

d [21/May/2008:15:25:30 -0400] cupsdAcceptClient: 8 connected to server on 192.168.4.7:631
d [21/May/2008:15:25:30 -0400] cupsdAddSelect: fd=8, read_cb=0x8057552, write_cb=(nil), data=0x80fb118
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 6 fds for 1 seconds...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: Read on fd 8...
d [21/May/2008:15:25:30 -0400] cupsdReadClient: 8, used=0, file=-1 state=0
D [21/May/2008:15:25:30 -0400] cupsdReadClient: 8 GET /admin/ HTTP/1.1
d [21/May/2008:15:25:30 -0400] cupsdReadClient: 8 Browser asked for language "en-us.utf-8"...
d [21/May/2008:15:25:30 -0400] cupsdFindBest: uri = "/admin/"...
d [21/May/2008:15:25:30 -0400] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d [21/May/2008:15:25:30 -0400] cupsdFindBest: Location /admin/conf Limit 7f
d [21/May/2008:15:25:30 -0400] cupsdFindBest: Location /admin Limit 7f
d [21/May/2008:15:25:30 -0400] cupsdFindBest: Location / Limit 7f
d [21/May/2008:15:25:30 -0400] cupsdFindBest: best = /admin
d [21/May/2008:15:25:30 -0400] cupsdAuthorize: con->uri="/admin/", con->best=0x80e58c8(/admin)
d [21/May/2008:15:25:30 -0400] cupsdAuthorize: Authorization="Basic Y3Vwc3N1Y2tzOm9sZHZheG1hbjI="
d [21/May/2008:15:25:30 -0400] get_md5_password(username="cupssucks", group="(null)", passwd=0xbff1e550)
d [21/May/2008:15:25:30 -0400] Found MD5 user cupssucks, group sys...
D [21/May/2008:15:25:30 -0400] cupsdAuthorize: Authorized as cupssucks using BasicDigest
d [21/May/2008:15:25:30 -0400] cupsdIsAuthorized: con->uri="/admin/", con->best=0x80e58c8(/admin)
d [21/May/2008:15:25:30 -0400] cupsdIsAuthorized: level=CUPSD_AUTH_USER, type=BasicDigest, satisfy=CUPSD_AUTH_SATISFY_ALL, num_names=1
d [21/May/2008:15:25:30 -0400] cupsdIsAuthorized: auth=CUPSD_AUTH_ALLOW...
D [21/May/2008:15:25:30 -0400] cupsdIsAuthorized: username="cupssucks"
d [21/May/2008:15:25:30 -0400] cupsdIsAuthorized: Checking user membership...
d [21/May/2008:15:25:30 -0400] cupsdCheckGroup(username="cupssucks", user=0xd2a098, groupname="sys")
d [21/May/2008:15:25:30 -0400] get_md5_password(username="cupssucks", group="sys", passwd=0xbff1e4f0)
d [21/May/2008:15:25:30 -0400] Found MD5 user cupssucks, group sys...
d [21/May/2008:15:25:30 -0400] pipe_command: command="/usr/lib/cups/cgi-bin/admin.cgi", options="(null)"
d [21/May/2008:15:25:30 -0400] pipe_command: argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[1] = "CUPS_DATADIR=/usr/share/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[2] = "CUPS_DOCROOT=/usr/share/doc/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[6] = "CUPS_SERVERROOT=/etc/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[7] = "CUPS_STATEDIR=/var/run/cups"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[8] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[9] = "SERVER_ADMIN=mgorczyca at abs-tpa.com"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[10] = "SOFTWARE=CUPS/1.3.7"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[11] = "TMPDIR=/var/spool/cups/tmp"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[12] = "TZ=EST5EDT"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[13] = "USER=root"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[15] = "CUPS_ENCRYPTION=IfRequested"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[16] = "IPP_PORT=631"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[17] = "CUPSD_AUTH_TYPE=Basic"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[18] = "LANG=en_US.UTF8"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[19] = "REDIRECT_STATUS=1"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[21] = "SERVER_NAME=192.168.4.7"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[22] = "SERVER_PORT=631"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[23] = "REMOTE_ADDR=192.168.1.142"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[24] = "REMOTE_HOST=192.168.1.142"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[25] = "SCRIPT_NAME=/admin/"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[26] = "SCRIPT_FILENAME=/usr/share/doc/cups/admin/"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[27] = "REMOTE_USER=cupssucks"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[29] = "HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[30] = "HTTP_REFERER=http://abslinux:631/"
d [21/May/2008:15:25:30 -0400] pipe_command: envp[31] = "REQUEST_METHOD=GET"
d [21/May/2008:15:25:30 -0400] cupsdStartProcess("/usr/lib/cups/cgi-bin/admin.cgi", 0xbff1be20, 0xbff1bc40, -1, 12, 7)
d [21/May/2008:15:25:30 -0400] cupsdAddCert: adding certificate for pid 6392
D [21/May/2008:15:25:30 -0400] [CGI] /usr/lib/cups/cgi-bin/admin.cgi started - PID = 6392
I [21/May/2008:15:25:30 -0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6392)
D [21/May/2008:15:25:30 -0400] cupsdSendCommand: 8 file=10
d [21/May/2008:15:25:30 -0400] cupsdAddSelect: fd=10, read_cb=0x805a61b, write_cb=(nil), data=0x80fb118
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 7 fds for 1 seconds...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: Read on fd 6...
D [21/May/2008:15:25:30 -0400] [CGI] admin.cgi started...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 7 fds for 1 seconds...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: Read on fd 6...
E [21/May/2008:15:25:30 -0400] [CGI] Unable to connect to cupsd: Permission denied
D [21/May/2008:15:25:30 -0400] [CGI] cupsServer()="/var/run/cups/cups.sock"
D [21/May/2008:15:25:30 -0400] [CGI] ippPort()=631
D [21/May/2008:15:25:30 -0400] [CGI] cupsEncryption()=0
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 7 fds for 1 seconds...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: Read on fd 10...
d [21/May/2008:15:25:30 -0400] write_pipe: CGI output on fd 10...
d [21/May/2008:15:25:30 -0400] cupsdRemoveSelect: fd=10
d [21/May/2008:15:25:30 -0400] cupsdAddSelect: fd=8, read_cb=(nil), write_cb=0x80544a2, data=0x80fb118
d [21/May/2008:15:25:30 -0400] process_children()
E [21/May/2008:15:25:30 -0400] PID 6392 (/usr/lib/cups/cgi-bin/admin.cgi) stopped with status 1!
d [21/May/2008:15:25:30 -0400] cupsdDeleteCert: removing certificate for pid 6392
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 6 fds for 1 seconds...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: Write on fd 8...
d [21/May/2008:15:25:30 -0400] cupsdAddSelect: fd=10, read_cb=0x805a61b, write_cb=(nil), data=0x80fb118
d [21/May/2008:15:25:30 -0400] cupsdWriteClient: 8 bytes < 0
d [21/May/2008:15:25:30 -0400] cupsdAddSelect: fd=8, read_cb=0x8057552, write_cb=(nil), data=0x80fb118
d [21/May/2008:15:25:30 -0400] cupsdRemoveSelect: fd=10
d [21/May/2008:15:25:30 -0400] cupsdWriteClient: 8 Closing data file 10.
d [21/May/2008:15:25:30 -0400] cupsdDoSelect: polling 6 fds for 1 seconds...
d [21/May/2008:15:25:31 -0400] cupsdDoSelect: epoll() returned 0...
d [21/May/2008:15:25:31 -0400] cupsdCheckJobs: 0 active jobs, sleeping=0, reload=0
d [21/May/2008:15:25:31 -0400] select_timeout(0): 300 seconds to timeout a client connection
d [21/May/2008:15:25:31 -0400] cupsdDoSelect: polling 6 fds for 300 seconds...
d [21/May/2008:15:25:35 -0400] cupsdDoSelect: epoll() returned 1...
d [21/May/2008:15:25:35 -0400] cupsdDoSelect: Read on fd 1...
d [21/May/2008:15:25:35 -0400] cupsdAcceptClient(lis=0x80e1388) 1 Clients = 1
D [21/May/2008:15:25:35 -0400] cupsdAcceptClient: 10 from localhost:631 (IPv4)
d [21/May/2008:15:25:35 -0400] cupsdAcceptClient: 10 connected to server on abslinux:631
d [21/May/2008:15:25:35 -0400] cupsdAddSelect: fd=10, read_cb=0x8057552, write_cb=(nil), data=0x81017e0
d [21/May/2008:15:25:35 -0400] cupsdDoSelect: polling 7 fds for 1 seconds...





More information about the cups mailing list