I have a CUPS server that seems to be unable to listen on 631. When I start the service the /var/log/cups/error_log produces:
E [19/Oct/2009:09:07:51 -0400] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
When I chech the netstat, I see this:
# netstat -lnp --ip
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 1547/pc-app
tcp 0 0 0.0.0.0:55913 0.0.0.0:* LISTEN 1294/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1055/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1339/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1630/sendmail: acce
udp 0 0 0.0.0.0:659 0.0.0.0:* 1294/rpc.statd
udp 0 0 0.0.0.0:798 0.0.0.0:* 1055/rpcbind
udp 0 0 0.0.0.0:41272 0.0.0.0:* 1078/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 1564/dhclient
udp 0 0 0.0.0.0:55240 0.0.0.0:* 1294/rpc.statd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 1078/avahi-daemon:
udp 0 0 0.0.0.0:111 0.0.0.0:* 1055/rpcbind
udp 0 0 0.0.0.0:631 0.0.0.0:* 1022/portreserve
I believe I'm expecting to see 0.0.0.0:631 to be assigned to CUPS.
cupsd.conf:
MaxLogSize 1m
LogLevel warn
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Disable printer sharing and shared printers.
Browsing Off
DefaultAuthType Basic
<Location />
# Allow remote administration...
Order allow,deny
Allow @LOCAL
Allow 10.11.101.82
Allow 10.6.101.214
Allow all
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow @LOCAL
Allow 10.11.101.82
Allow 10.6.101.214
Allow all
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Not$
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Curren
t-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Not$
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Curren
t-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>