Unable to open device file "/dev/lpt0": Permission denied
rsmith at xs4all.nl
Tue Apr 22 15:40:41 UTC 2008
On Tue, Apr 22, 2008 at 10:08:37AM -0500, David Reedy Jr wrote:
> > 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
> Thanks for the info. This didn't actually fix the problem, but I know it
> was needed since I read somewhere that everything that cupsd spawns
> runs as cups.
> What I ended up doing was resetting my cupsd.conf to default and redid
> my settings. I must have had a typo in there somewhere before because
> as soon as I restarted cupsd after making the changes, the parallel and
> usb ports suddenly became available as devices for the printer.
It happens. :-)
> I had previously selected lpd and then manually specified the uri as
> The laser on the parallel port is now working fine.
> I also went ahead
> and setup my deskjet on usb:/dev/ulpt0. Print test pages get marked as
> completed but nothing actually comes out of the printer. Still trying
> to figure that one out.
Have a look at the cups logfiles in /var/log/cups. They should give you
some pointers. You'll probably need to set the device permissions for
ulpt in devfs.rules, not devfs.conf!
[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
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080422/610d2a88/attachment.pgp
More information about the freebsd-questions