From owner-freebsd-questions@FreeBSD.ORG Sun May 9 14:03:08 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 A18FE16A4CE for ; Sun, 9 May 2004 14:03:08 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6832643D3F for ; Sun, 9 May 2004 14:03:07 -0700 (PDT) (envelope-from tyson@stanfordalumni.org) Received: from wbar4.wdc2-4.16.197.44.wdc2.elnk.dsl.genuity.net ([4.16.197.44] helo=orange) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BMvRy-0001Me-00; Sun, 09 May 2004 14:03:06 -0700 From: Don Tyson To: Bjarne Wichmann Petersen In-Reply-To: Your message of "Sun, 09 May 2004 22:07:36 +0200." <200405092207.37061.freebsd.nospam@mekanix.dk> Date: Sun, 09 May 2004 17:03:00 -0400 Message-Id: cc: freebsd-questions@freebsd.org Subject: Re: [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 21:03:08 -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". > [snipped] > 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. > I can't help you with samba, but Windows 2000 and Windows XP users are able to use the LaserJet attached to my FreeBSD machine, which runs apsfilter. I've attached a copy of my /etc/printcap file at the end of this message. The Windows users do not log in to the FreeBSD machine to use the printer. I don't have samba installed at all. The Windows hosts are listed in my FreeBSD /etc/hosts.lpd file; otherwise the FreeBSD machine won't know who they are and won't permit them to connect. Follow the Windows instructions to install "print services for unix," then install a local, not network, printer using the LPR port on the Windows machines. Share the printer so all Windows users can use it. Hope this helps. Don Tyson /etc/printcap file: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL lp|ljet4;r=600x600;q=photo;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: