From owner-freebsd-questions Sun Aug 27 6: 3:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom1-173.telepath.com [216.14.1.173]) by hub.freebsd.org (Postfix) with SMTP id 740D537B43E for ; Sun, 27 Aug 2000 06:03:48 -0700 (PDT) Received: (qmail 52631 invoked by uid 100); 27 Aug 2000 13:03:10 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14761.4494.440855.207984@guru.mired.org> Date: Sun, 27 Aug 2000 08:03:10 -0500 (CDT) To: jason Cc: questions@freebsd.org Subject: one last printing question In-Reply-To: <50327680@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jason writes: > when I try to print directly to /dev/lpt0 as a regular user, I get > permission denied. Whats the correct solution to this? should I just chmod > the /dev/lpt0 as a local user? This seems to work, but doesnt seem to be > the correct way to do it. What do you mean by "print directly to /dev/lpt0"? If you mean you're just sending the output of shell commands to /dev/lpt0 - that's not the way to do it. As you've discovered, that means only root can print, or that people can disrupt each others print jobs. The printer spooler lpd. Add "lpd_enable=YES" to /etc/rc.conf, edit /etc/printcap (check out /usr/share/examples/etc/printcap and the the printcap(5) man page), then reboot. Everyone should then be able to use the command "lpr" to send output to the printer. You might also check out /usr/ports/print/apsfilter (or apsfilter6), which recognizes and prints lots of different file types. The downside is that it installs a *lot* of other ports to get the appropriate conversion tools.