From owner-freebsd-questions@FreeBSD.ORG Fri Jan 12 22:26:15 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E92A16A513 for ; Fri, 12 Jan 2007 22:26:15 +0000 (UTC) (envelope-from csar@123.com.sv) Received: from asgard1.americatelsal.com (asgard2.americatelsal.com [200.13.161.7]) by mx1.freebsd.org (Postfix) with ESMTP id C2D0F13C459 for ; Fri, 12 Jan 2007 22:26:14 +0000 (UTC) (envelope-from csar@123.com.sv) Received: (qmail 7210 invoked from network); 12 Jan 2007 22:29:51 -0000 Received: from unknown (HELO ?192.168.10.251?) (200.13.161.68) by asgard1.americatelsal.com with SMTP; 12 Jan 2007 22:29:51 -0000 Message-ID: <45A805D6.7020205@123.com.sv> Date: Fri, 12 Jan 2007 16:04:06 -0600 From: =?ISO-8859-1?Q?C=E9sar_Amaya?= User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Nathan Vidican References: <45A7CB28.7010107@123.com.sv> <45A7DCF4.3050509@wmptl.com> In-Reply-To: <45A7DCF4.3050509@wmptl.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Serving windows print drivers with Samba+CUPS (Was: CUPS +) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 22:26:15 -0000 > 1 - Setup CUPS, add printers using RAW queues, Setup Samba, tell it to > use cups for printing > > 2 - Setup a shared location for printer drivers from Samba, the share > can be pretty much anywhere on your local FreeBSD filesystem, and can > use all the options of any other file-share, but must be shared from > Samba with the name 'print$'. Something similar to this inside your > smb.conf should suffice: > > [print$] > comment = Windows Client Printer Drivers > path = /var/db/windows_printers > browseable = yes > guest ok = yes > read only = yes > write list = root Administrator @"Domain Admins" @"Printer Admins" > > 3 - Login from a Windows client, to the Samba server using an > administrator login (as specified in the write list for print$). Goto > the 'Printers' section, NOT the direct queue mapping, for example: > \\samba1\Printers NOT \\samba1\some_printer. When in the printers > folder, right-click the printer you wish to add the drivers to, and > you can add them from the windows properties dialog like you would any > printer. This will upload the drivers to the samba [print$] share for > other clients to use. > > 4 - From another samba client running windows, goto > \\samba1\some_printer and it will prompt if you wish to 'Connect to > printer', simply say yes - and that client should use the windows > drivers directly from the samba [print$] share without further prompting. > > There are some issues, and it's not just as simple as 4 easy steps... > but this is the general process to go through, with a little reading > from the Samba website/documentation you should be able to get it > going. Feel free to drop another message back to the list if you run > into more questions from there. > > -- > Nathan Vidican It does not worked for me. This is my smb.conf file and my cupsd.conf printserver# cat smb.conf [global] workgroup = AmnetDatos server string = Print Server printcap name = cups load printers = yes printing = cups browseable = yes log file = /var/log/samba/log.%m max log size = 50 hosts allow = 192.168.10. 127. security = share encrypt passwords = yes smb passwd file = /usr/local/etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no log level = 4 [print$] comment = Printer Drivers path = /usr/local/share/cups/drivers browseable = yes guest ok = no read only = yes write list = root Administrator @"Domain Admins" @"Printer Admins" [HPDatos] comment = HP Laser Jet 4000 printable = yes path = /var/spool/samba guest ok = yes public = yes printable = yes printer admin = root [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes public = yes writable = no printable = yes printer admin = root printserver# cat cupsd.conf LogLevel info # Administrator user group... SystemGroup wheel # Only listen for connections from the local machine. Listen *:631 Listen /var/run/cups.sock # Show shared printers on the local network. Browsing On BrowseOrder allow,deny #BrowseAllow @LOCAL BrowseAllow 192.168.10.* # Default authentication type, when authentication is required... DefaultAuthType Basic # Restrict access to the server... Order allow,deny Allow localhost Allow 192.168.10.* Allow 192.168.101.* # Restrict access to the admin pages... Encryption Required Order allow,deny Allow localhost Allow 192.168.10.251 # Restrict access to configuration files... AuthType Basic Require user @SYSTEM Order allow,deny Allow localhost # Set the default printer/job policies... # Job-related operations must be done by the owner or an adminstrator... Require user @OWNER @SYSTEM Order deny,allow # All administration operations require an adminstrator to authenticate... AuthType Basic Require user @SYSTEM Order deny,allow # Only the owner or an administrator can cancel or authenticate a job... Require user @OWNER @SYSTEM Order deny,allow Order deny,allow do you see something wrong in my configuration?