[rescue] my cupsd.conf

Geoffrey S. Mendelson gsm at mendelson.com
Sat Nov 6 10:10:36 CST 2004


My cupsd.conf, note that my solaris machine is behind a firewall and therefore
the allow from all is not a saftey problem.

This version of cups was compiled with --prefix=/


ServerName sunny.mendelson.com
ServerAdmin gsm at mendelson.com
AccessLog /var/log/cups/access_log
#ClassifyOverride off
DataDir /usr/share/cups
DefaultCharset utf-8
DefaultLanguage en
DocumentRoot /usr/share/doc/cups
ErrorLog /var/log/cups/error_log
FontPath /usr/share/cups/fonts
LogLevel info
#LogLevel debug2
MaxLogSize 1048576
PageLog syslog
PreserveJobHistory Yes
PreserveJobFiles Yes
AutoPurgeJobs Yes
MaxCopies 100
MaxJobs 500
Printcap /etc/printcap
PrintcapFormat BSD
PrintcapGUI /usr/bin/glpoptions
RequestRoot /var/spool/cups
RemoteRoot remroot
ServerBin /usr/lib/cups
ServerRoot /etc/cups
User lp
Group sys
RIPCache 8m
TempDir /var/spool/cups/tmp
FilterLimit 0
Port 631
HostNameLookups On
KeepAlive On
KeepAliveTimeout 60
MaxClients 100
MaxClientsPerHost 100
MaxRequestSize 0
Timeout 300
Browsing On
BrowseProtocols cups
BrowseShortNames Yes
BrowseInterval 120
BrowsePort 631
BrowseTimeout 300
ImplicitClasses On
ImplicitAnyCLasses Off
HideImplicitMembers Off
SystemGroup sys
RootCertDuration 300

<Location />
AuthType None
Order Deny,Allow
Allow From All
Deny From None
</Location>

<Location /classes>
AuthType Basic
AuthClass System
Order Deny,Allow
Allow From All
Deny From None
</Location>

<Location /jobs>
AuthType Basic
AuthClass System
Order Deny,Allow
Allow From All
Deny From None
</Location>

<Location /printers>
AuthType None
Order Deny,Allow
Allow From All
Deny From None
</Location>

<Location /admin>
#AuthType None
AuthType Basic
AuthClass System
Order Deny,Allow
Allow From All
Deny From None
</Location>

----------------------------------------------------------------------
my printers.conf file, note that this is on the linux machine. The windows
printers are on XP machines and there is a userid "printer" set up on them.

The printer "margie" is an HP multifuction color printer/scanner/fax and
there are several definitions so that the default is to print draft
quality on it.


# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Thu 26 Aug 2004 02:16:29 AM IDT
<Printer hp6>
Info hp inkjet 600
Location on metatron
DeviceURI smb://printer:*******@metatron/hp6
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer margie-hp>
Info hp Officejet 6100
Location margie's office
DeviceURI smb://printer:*******@margie/hp2
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer margie-photo>
Info margie's printer photo quality
Location margie's desk
DeviceURI smb://printer:*******@margie/hp2
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer margie-text>
Info text only printing fast, cheap
Location margie's office
DeviceURI smb://printer:*******@margie/hp2
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer medici>
Info hp7550a plotter
Location upstairs
DeviceURI serial:/dev/ttyS0?baud=9600+bits=8+parity=none+flow=hard
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<DefaultPrinter udj>
Info HP Deskjet 510
Location upstairs
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

-------------------------------------------------------------------------
change mime.convs to allow raw (hp format files)

########################################################################
#
# Raw filter...
#
# Uncomment the following filter and the application/octet-stream type
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#

application/octet-stream	application/vnd.cups-raw	0	-

--------------------------------------------------------------------------
and mime.types


########################################################################
#
# Raw print file support...
#
# Uncomment the following type and the application/octet-stream
# filter line in mime.convs to allow raw file printing without the
# -oraw option.
#

application/octet-stream


-- 
Geoffrey S. Mendelson, C.T.O. GW&T Ltd., Jerusalem Israel
gsm at mendelson.com gsm at gwandt.com
IL Voice: 972-544-608-069  IL Fax: 972-2-648-1443 U.S. Voice: 1-215-821-1838 



More information about the rescue mailing list