Date: Mon, 24 Jun 2002 16:49:46 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Ronan Lucio <ronanl@melim.com.br> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: LPD Error Message-ID: <Pine.BSF.4.21.0206241632480.97678-100000@wonkity.com> In-Reply-To: <20020624163330.4db03459.ronanl@melim.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0206241632480.97678-100000>