[cups.general] Cups 1.3.7-8, service to clients

Margaret Doll Margaret_Doll at brown.edu
Thu May 7 05:44:25 PDT 2009


On May 7, 2009, at 4:41 AM, Tim Waugh wrote:

> On Wed, 2009-05-06 at 13:10 -0400, Margaret Doll wrote:
>>> What does 'cupsctl' say when you run it as root?
>>
>> cupsctl
>> MaxLogSize=2000000000
>> SystemGroup=sys root
>> DefaultAuthType=Basic
>> _debug_logging=1
>> _remote_admin=0
>> _remote_any=0
>> _remote_printers=1
>> _share_printers=0
>> _user_cancel_any=1
>
> _share_printers was 0 at this point, which means that the "Share
> published printers" option was not enabled.  Had you edited the
> configuration file in any way after enabling that option?  Anyway that
> was the problem -- the setting was not enabled.
>
>> In cupsd.conf I  changed
>>
>> Listen *:631
>> Listen /var/run/cups/cups.sock
>>
>> and added
>>
>> Port 631
>>
>> The output of cupsctl is the same
>
> Did you restart CUPS?  It's usually best to use cupsctl (or the web
> interface, or system-config-printer) to change settings rather than
> editing /etc/cups/cupsd.conf, as doing so will reload cupsd
> automatically.
>
> Tim.
> */

I do restart cups after every change in cupsd.conf.

I originally started with the system-config-printer to install the
print queues.  For each print queue  Under Settings I checked

	enabled
	accept
	shared

Under Access Control

	I have set Allow everyone except    - there are no exceptions
listed.

When this did not allow printing across the network to the server,
I started editing /etc/cups/cups.conf

The current contents of cups.conf is

MaxLogSize 20000
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another  
subnet.)
BrowseAllow @LOCAL
BrowseAddress @LOCAL
BrowsingLocalProtocols CUPS
BrowseShortNames yes
DefaultShared yes
UseNetworkDefault no
Allow ALL
AuthType None
AuthInfoRequired none
<Location />
   Allow From *.subnet.edu
   Allow From particularcomputer.edu
   # Allow shared printing...
   Order allow,deny
   Allow all
</Location>
<Location /admin>
   Encryption Required
   # Restrict access to the admin pages...
   Order allow,deny
</Location>
<Location /admin/conf>
   AuthType Default
   Require user @SYSTEM
   # Restrict access to the configuration files...
   Order allow,deny
</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-Noti
fications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume- 
Job CUPS-Move
-Job>
     Order deny,allow
   </Limit>
   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify- 
Class CUPS-Del
ete-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-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate- 
Printer Activate-P
rinter Restart-Printer Shutdown-Printer Startup-Printer Promote-Job  
Schedule-Job-Af
ter CUPS-Accept-Jobs CUPS-Reject-Jobs>
     AuthType Default
     Require user @SYSTEM
     Order deny,allow
   </Limit>
   <Limit Cancel-Job CUPS-Authenticate-Job>
     Require user @OWNER @SYSTEM
     Order allow,deny
   </Limit>
   <Limit All>
     Order allow,deny
   </Limit>
</Policy>



cupsctl
MaxLogSize=20000
SystemGroup=sys root
BrowsingLocalProtocols=CUPS
BrowseShortNames=yes
DefaultShared=yes
UseNetworkDefault=no
AuthType=None
AuthInfoRequired=none
_debug_logging=1
_remote_admin=0
_remote_any=1
_remote_printers=1
_share_printers=1
_user_cancel_any=0


With these settings, the client RedHat system is still getting the  
message that
	
	Network host 'name' is busy, down, or unreachable; will retry in 30  
seconds.

The client Mac gets the message:

	Printer Paused.   Yesterday it was getting that access was forbidden.

The cups error_log on the Mac contains

cupsdReadClient: 14 POST / HTTP/1.1
D [07/May/2009:08:38:32 -0400] cupsdAuthorize: No authentication data  
provided.
D [07/May/2009:08:38:32 -0400] Get-Printer-Attributes ipp://localhost/ 
printers/test
D [07/May/2009:08:38:32 -0400] cupsdProcessIPPRequest: 14  
status_code=0 (successful-ok)


On the server, I get the following errors at boot time:

May  5 16:10:14 geops2 cupsd[11379]: *** WARNING *** The programme  
'cupsd' uses the
  Apple Bonjour compatiblity layer of Avahi.
May  5 16:10:14 geops2 cupsd[11379]: *** WARNING *** Please fix your  
application to
  use the native API of Avahi!
May  5 16:10:14 geops2 cupsd[11379]: *** WARNING *** For more  
information see <http
://0pointer.de/avahi-compat?s=libdns_sd&e=cupsd>

D [07/May/2009:08:40:10 -0400] Report: jobs-active=0
D [07/May/2009:08:40:10 -0400] Report: printers=102
D [07/May/2009:08:40:10 -0400] Report: printers-implicit=0
D [07/May/2009:08:40:10 -0400] Report: stringpool-string-count=81388
D [07/May/2009:08:40:10 -0400] Report: stringpool-alloc-bytes=33880
D [07/May/2009:08:40:10 -0400] Report: stringpool-total-bytes=1384952
D [07/May/2009:08:40:10 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [07/May/2009:08:40:10 -0400] cupsdNetIFUpdate: "eth0" = serversname...
D [07/May/2009:08:40:10 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [07/May/2009:08:40:10 -0400] cupsdNetIFUpdate: "eth0" =  
fe80::222:19ff:fe2b:7ccc%



>
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups





More information about the cups mailing list