From owner-freebsd-questions@FreeBSD.ORG Tue May 18 02:49:14 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 300F516A4CE for ; Tue, 18 May 2004 02:49:14 -0700 (PDT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CBA443D66 for ; Tue, 18 May 2004 02:49:09 -0700 (PDT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004051818:33:08:473063.15039.2817665968 for ; Tue, 18 May 2004 18:33:08 +0900 (KST) Message-ID: <40A9DC0E.9040304@users.sourceforge.net> Date: Tue, 18 May 2004 18:49:02 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd.nospam@mekanix.dk References: <200405092207.37061.freebsd.nospam@mekanix.dk> <200405181052.58531.freebsd.nospam@mekanix.dk> In-Reply-To: <200405181052.58531.freebsd.nospam@mekanix.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:9.56) (by Terrace) 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: Tue, 18 May 2004 09:49:14 -0000 Bjarne Wichmann Petersen wrote: > On Sunday 09 May 2004 22:07, Bjarne Wichmann Petersen wrote: > > >>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. I've got an HP LaserJet 4V connected to the parallel port of my FBSD PC. I use CUPS, so I share the printer with W2k over ipp (port 631). Note: older W$ boxes (W96, W98) do not support ipp, I believe. My firewall has: ${fwcmd} add check-state ${fwcmd} add allow tcp from any to any established keep-state ${fwcmd} add allow log tcp from 147.46.44.0/24,147.46.50.0/24 to my.pc.ip.ad ipp in via rl0 setup You seem not to be working with CUPS. In that case, why not using lpd (port 515) instead of samba? I think that's more secure, than opening up your firewall for all the funny M$-W$ ports. W2k should support lpd printer sharing, if I'm not wrong. I'm not a M$-W$ expert though. lpd is covered in the printer section of the handbook. Rob.