From owner-freebsd-questions@FreeBSD.ORG Thu Jan 1 09:26:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4453A16A4CE for ; Thu, 1 Jan 2004 09:26:18 -0800 (PST) Received: from dsl-mail.kamp.net (mail.kamp-dsl.de [195.62.99.42]) by mx1.FreeBSD.org (Postfix) with SMTP id D53FF43D4C for ; Thu, 1 Jan 2004 09:26:15 -0800 (PST) (envelope-from root@pukruppa.de) Received: (qmail 2111 invoked by uid 505); 1 Jan 2004 17:29:39 -0000 Received: from root@pukruppa.de by dsl-mail by uid 89 with qmail-scanner-1.14 (spamassassin: 2.43. Clear:SA:0(0.0/5.0):. Processed in 0.326683 secs); 01 Jan 2004 17:29:39 -0000 X-Spam-Status: No, hits=0.0 required=5.0 Received: from unknown (HELO reverse-213-146-114-24.dialin.kamp-dsl.de) (213.146.114.24) by dsl-mail.kamp.net with SMTP; 1 Jan 2004 17:29:39 -0000 Date: Thu, 1 Jan 2004 18:33:10 +0100 (CET) From: Peter Ulrich Kruppa X-X-Sender: root@pukruppa.net To: Phil Payne In-Reply-To: <200401011332.55814.phil@sal-n-phil.net> Message-ID: <20040101181240.L2524@pukruppa.net> References: <200401011332.55814.phil@sal-n-phil.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Samba, Cups and Printing: Windows client gives "Access denied" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 17:26:18 -0000 Hi Phil! On Thu, 1 Jan 2004, Phil Payne wrote: > I've got an HP printer on USB port on Freebsd 4-Stable box. Printer is > on /dev/ulpt0. Installed cups and printing from BSD is fine. > > Had samba installed and working great for filesharing. Now introduced an > all printers share to share this printer. Printer is browseable from > windows machine. > > When I install this printer on a Win2K machine (and use local drivers) I > get "Access Denied, Unable to Connect." Unlike some other people's > experience I cannot print to the printer despite this message. I have got the same problem, only the other way round: Last week I managed to get my standalone print server with samba and cups working, but I can't exactly tell how I did it, so you can help me there :-) This is my smb.conf ----------------------------------------------- # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2003/12/29 08:09:35 # Global parameters [global] netbios name = SMALL security = SHARE passdb backend = guest ldap ssl = no hosts allow = 192.168.10. [share] path = /share read only = No guest ok = Yes [hpdj] path = /var/spool/samba guest ok = Yes printable = Yes use client driver = Yes ---------------------------------------- Everyone on my home network can print to my FreeBSD machine. [share] is a share I just put up for testing purposes. [hpdj] is the printer, just the way I set it up with cups for local printing - no raw printer or anything like that. /var/spool/samba is a directory I put in myself. Its permissions are set to drwxrwxrwt nobody nobody . Ideas for this setup com from J. Terpstra (one of samba's devellopers) http://us1.samba.org/samba/docs/man/StandAloneServer.html I am using samba3 compiled against cups on -CURRENT . As I said it works, but I am not sure if this is everything one needs to do. Hope it helps, Uli. +---------------------------+ | Peter Ulrich Kruppa | | Wuppertal | | Germany | +---------------------------+