2 .\" cupsaddsmb man page for CUPS.
4 .\" Copyright 2007-2014 by Apple Inc.
5 .\" Copyright 1997-2006 by Easy Software Products.
7 .\" These coded instructions, statements, and computer programs are the
8 .\" property of Apple Inc. and are protected by Federal copyright
9 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 .\" which should have been included with this file. If this file is
11 .\" file is missing or damaged, see the license at "http://www.cups.org/".
13 .TH cupsaddsmb 8 "CUPS" "11 June 2014" "Apple Inc."
15 cupsaddsmb \- export printers to samba for windows clients
24 .I samba-user[%samba-password]
39 .I samba-user[%samba-password]
51 The \fBcupsaddsmb\fR program exports printers to the SAMBA software (version 2.2.0 or higher) for use with Windows clients.
52 Depending on the SAMBA configuration, you may need to provide a password to export the printers.
53 This program requires the Windows printer driver files described below.
54 .SS SAMBA CONFIGURATION
55 \fBcupsaddsmb\fR uses the RPC-based printing support in SAMBA to provide printer drivers and PPD files to Windows client machines.
56 In order to use this functionality, you must first configure the SAMBA
58 file to support printing through CUPS and provide a printer driver download
68 comment = All Printers
69 path = /var/spool/samba
77 comment = Printer Drivers
78 path = /etc/samba/drivers
85 This configuration assumes a FHS-compliant installation of SAMBA; adjust the [printers] and [print$] share paths accordingly on your system as needed.
86 .SS MICROSOFT POSTSCRIPT DRIVERS FOR WINDOWS
87 The base driver for Windows 2000 and higher is the Microsoft PostScript driver, which is available on any system running Windows 2000 or higher in the %WINDIR%\\SYSTEM32\\SPOOL\\DRIVERS\\W32X86\\3 folder for 32-bit drivers and %WINDIR%\\SYSTEM32\\SPOOL\\DRIVERS\\X64\\3 folder for 64-bit drivers.
89 Copy the 32-bit drivers to the \fI/usr/share/cups/drivers\fR directory and the 64-bit drivers to the \fI/usr/share/cups/drivers/x64\fR directory exactly as named below:
98 \fBNote:\fR Unlike Windows, case is significant - make sure that you use the lowercase filenames shown above, otherwise \fBcupsaddsmb\fR will fail to export the drivers.
100 \fBcupsaddsmb\fR supports the following options:
102 \fB\-H \fIsamba-server\fR
103 Specifies the SAMBA server which defaults to the CUPS server.
105 \fB\-U \fIsamba-user\fR[\fB%\fIsamba-password\fR]
106 Specifies the SAMBA print admin username which defaults to your current username.
107 If the username contains a percent (%) character, then the text following the percent is treated as the SAMBA password to use.
110 Exports all known printers.
111 Otherwise only the named printers are exported.
113 \fB\-h \fIcups-server\fR[\fB:\fIport\fR]
114 Specifies a different CUPS server to use.
117 Specifies that verbose information should be shown.
118 This is useful for debugging SAMBA configuration problems.
124 CUPS Online Help (http://localhost:631/help)
126 Copyright \[co] 2007-2015 by Apple Inc.