From owner-freebsd-questions Tue Jun 25 12:41:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.melim.com.br (salseiros.melim.com.br [200.215.110.23]) by hub.freebsd.org (Postfix) with ESMTP id 1A9C037B400 for ; Tue, 25 Jun 2002 12:41:41 -0700 (PDT) Received: from praiadosamores.melim.com.br (praiadosamores.melim.com.br [200.215.110.20]) by mail.melim.com.br (Postfix) with SMTP id B47FBBA4F; Tue, 25 Jun 2002 16:41:33 -0300 (BRT) Date: Tue, 25 Jun 2002 16:41:33 -0300 From: Ronan Lucio To: Warren Block Cc: freebsd-questions@FreeBSD.ORG Subject: Re: LPD Error Message-Id: <20020625164133.2d79c377.ronanl@melim.com.br> In-Reply-To: References: <20020624163330.4db03459.ronanl@melim.com.br> Organization: Melim Internet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hello Warren, Good news... :-) Print server is working fine now Unfortunatly, I don't know exactly what realy makes it work because a employee that works in such enterprise have said to me he changed a permission of one file (I don't know how) and rcp starts working (it wans't working, too) today. So, I don't know if it starts working because of the changes that either i made today or the changes that he made today. Now, the files are figured this way: /etc/printcap ======================================= lp|local line printer:\ :lp=/dev/lpt0:sd=/var/spool/lpd/lp: \ :mx#0:so:sh:sb:of=/usr/lib/lp/filters/filter:sf spo:\ :mx#0:rm=spo:rp=lp:sd=/var/spool/lpd/spo: ======================================= # ls -l /var/spool/lpd/spo/ total 4 -rw-rw-r-- 1 root daemon 16 Jun 25 16:14 lock -rw-rw-r-- 1 root daemon 15 Jun 25 16:14 status Warren, thank you very much for your help. It's realy helped me a lot. Ronan On Mon, 24 Jun 2002 16:49:46 -0600 (MDT) Warren Block wrote: > 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