From owner-freebsd-questions@FreeBSD.ORG Sun May 9 13:06:22 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 DC88016A4CE for ; Sun, 9 May 2004 13:06:22 -0700 (PDT) Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABBF643D2D for ; Sun, 9 May 2004 13:06:21 -0700 (PDT) (envelope-from freebsd.nospam@mekanix.dk) Received: from [192.168.1.14] (0x50a16a15.boanxx13.adsl-dhcp.tele.dk [80.161.106.21]) by pfepa.post.tele.dk (Postfix) with ESMTP id 3EFC047FE31 for ; Sun, 9 May 2004 22:06:19 +0200 (CEST) From: Bjarne Wichmann Petersen To: freebsd-questions@freebsd.org Date: Sun, 9 May 2004 22:07:36 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405092207.37061.freebsd.nospam@mekanix.dk> Subject: [samba] can't print from w2k to bsd printer 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: Sun, 09 May 2004 20:06:23 -0000 Hi I've spend several hours trying to get samba to play nice. I can get user to login from windows to their bsd-account, mount CD's etc.. But I can't get the users to print. I can see the printer and I can install it. But when I click on the installed printer I get "access denied". I've tried everything, dublicating every smb.conf I could find. Trying out every options. None helped. Hope someone here can spot what's wrong. My setup is a desktop PC running FBSD and a laptop with w2k. These are connected through a router. The printer is a laserjet and works great on the FBSD. And I'm a newbie to samba. /etc/printcap (using fbsd's native lpr): laserjet|lp|ps|PS|S|hp|HP LaserJet 1200:\ :sh:sd=/var/spool/lpd/laserjet:\ :lp=/dev/lpt0:\ :mx#0:\ :if=/usr/local/libexec/psif: /usr/local/etc/smb.conf: (as it looks right now). [global] netbios name = fbsd server string = "Samba Server" workgroup = WORKGROUP security = share encrypt passwords = yes wins support = yes printing = bsd printcap name = /etc/printcap load printers = yes use client driver = no [printers] comment = All printers printable = yes path = /var/spool/samba browseable = no public = yes read only = yes writable = no [laserjet] comment = LaserJet 1200 on FreeBSD path = /var/spool/samba browseable = yes printable = yes writable = no hosts allow = 192.168.1. guest ok = yes Permission on /var/spool/samba: drwxrwxrwt 2 root wheel 512 May 9 21:35 samba I've tried 2 ways of installing the printer on w2k. 1) Clicking on the printericon in the local shares folder and 2) "add new printer" and selecting the printer from the network. Both ways gives me "access denied" after installation. Help! ;) Bjarne