Unable to open device file "/dev/lpt0": Permission denied

Roland Smith rsmith at xs4all.nl
Mon Apr 21 19:54:20 UTC 2008

On Mon, Apr 21, 2008 at 01:05:56PM -0500, David Reedy Jr wrote:
> Small home network. Trying to get cups working on my server.
> FreeBSD 7.0-RELEASE #4: Tue Apr 15 11:01:37 CDT 2008
>     root at omega.myhome.net:/usr/obj/usr/src/sys/OMEGA
> ...
> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> ppc0: FIFO with 16/16/9 bytes threshold
> ppbus0: <Parallel port bus> on ppc0
> ppbus0: [ITHREAD]
> ppbus0: IEEE1284 device found /NIBBLE
> Probing for PnP devices on ppbus0:
> ppbus0: <Hewlett-Packard HP LaserJet 6L/0101.01> PRINTER HP ENHANCED 

> StateMessage Unable to open device file "/dev/lpt0": Permission denied
> Trying to print a test page from the cups web interface on a client 
> machine, I get the error message. Doing chmod 777 /dev/lpt0 does not 
> change anything.
> Can somebody tell me what I've done wrong or point me in the direction I 
> should be looking?

IICR, the print device should belong to the cups group. At least, that's
my working setup. 

I have the following in /etc/devfs.conf:

# Give cups printer access
own     lpt0    root:cups
perm    lpt0    0660

If you don't want to reboot;
# chown root:cups /dev/lpt0
# chmod 0660 /dev/lpt0

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080421/b973f473/attachment.pgp

More information about the freebsd-questions mailing list