Date: Tue, 22 Apr 2008 17:40:25 +0200 From: Roland Smith <rsmith@xs4all.nl> To: David Reedy Jr <davidrjr@comcast.net> Cc: FreeBSD-questions@freebsd.org Subject: Re: Unable to open device file "/dev/lpt0": Permission denied Message-ID: <20080422154025.GC36675@slackbox.xs4all.nl> In-Reply-To: <200804221008.37489.davidrjr@comcast.net> References: <200804211305.56895.davidrjr@comcast.net> <20080421195416.GA6884@slackbox.xs4all.nl> <200804221008.37489.davidrjr@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--R+My9LyyhiUvIEro Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Thanks for the info. This didn't actually fix the problem, but I know it= =20 > was needed since I read somewhere that everything that cupsd spawns=20 > runs as cups. >=20 > What I ended up doing was resetting my cupsd.conf to default and redid=20 > my settings. I must have had a typo in there somewhere before because=20 > as soon as I restarted cupsd after making the changes, the parallel and= =20 > usb ports suddenly became available as devices for the printer. It happens. :-) > I had previously selected lpd and then manually specified the uri as=20 > parallel:/dev/lpt0. >=20 > The laser on the parallel port is now working fine.=20 Good. > I also went ahead=20 > and setup my deskjet on usb:/dev/ulpt0. Print test pages get marked as=20 > completed but nothing actually comes out of the printer. Still trying=20 > 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! Roland --=20 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) --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgOBukACgkQEnfvsMMhpyWAlACePvDWRHdYVfmO3tFVF0ijGMOX 7V8AoIkDr9j7h8tfnd5w4FmSoqWcu7E+ =IZJR -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080422154025.GC36675>