From owner-freebsd-questions Mon Jun 24 15:50:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wonkity.com (wonkity.com [63.93.4.4]) by hub.freebsd.org (Postfix) with ESMTP id 16E6337B482 for ; Mon, 24 Jun 2002 15:49:48 -0700 (PDT) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id g5OMnluF097713; Mon, 24 Jun 2002 16:49:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id g5OMnkKI097710; Mon, 24 Jun 2002 16:49:46 -0600 (MDT)?g (envelope-from wblock@wonkity.com) Date: Mon, 24 Jun 2002 16:49:46 -0600 (MDT) From: Warren Block To: Ronan Lucio Cc: freebsd-questions@FreeBSD.ORG Subject: Re: LPD Error In-Reply-To: <20020624163330.4db03459.ronanl@melim.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 24 Jun 2002, Ronan Lucio wrote: > Hello Warren, > > > > But, if it's wrong, how should I set the users permissions? > > > > chown -R daemon.daemon /var/spool/output/lpd/spo > > I've did it but the lpd still don't work... :-/ Whoops--my brain finally got back to me on this. lpd runs filters as user daemon, so I'm used to setting ownership of these directories that way. Let me try again. Just to make sure things are clear: The FreeBSD system is receiving print jobs. It's then sending them on to the queue called "lp" on "spo", another machine or print server. Right? (You've got filtered queues also, but let's do this one first.) I've compared your printcap to mine, and there are some differences. Here's a printcap entry I use to talk to my HP4M laser on the network. lpraw:\ :lp=:\ :sh:\ :mx#0:\ :rm=hp4m:\ :rp="raw":\ :sd=/var/spool/output/lpd/lpraw:\ :lf=/var/log/lpd-errs: I'm not sure which of these are optional, but it won't hurt to have the extras. So your printcap entry for this machine should be: spo:\ :lp=:\ :sh=:\ :mx#0:\ :rm=spo:\ :rp="lp":\ :sd=/var/spool/lpd/spo:\ :lf=/var/log/lpd-errs: The difference is that lp= is defined (as undefined!), and a log file is defined. Owner of the /var/spool/lpd/spo directory is root.daemon, and permissions of the files in it (lock and status) are 664: chmod 664 /var/spool/lpd/spo Now... with those settings, does your system process print jobs for spo? -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message