Date: Tue, 15 May 2007 22:17:20 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Anton Galitch <anton.galitch@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Anyone could make Epson Stylus cx4700 work? Message-ID: <20070515201720.GA62464@slackbox.xs4all.nl> In-Reply-To: <7c80322b0705151206m2e7d5c33l9dbdd7893f882e68@mail.gmail.com> References: <7c80322b0705150951t78bb77edk5e3259de80942ee8@mail.gmail.com> <20070515174417.GA58412@slackbox.xs4all.nl> <200705151456.25685.lists@jnielsen.net> <20070515190230.GC59938@slackbox.xs4all.nl> <7c80322b0705151206m2e7d5c33l9dbdd7893f882e68@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 15, 2007 at 04:06:07PM -0300, Anton Galitch wrote: > Thanks Roland, I put what you have said to /etc/devfs.rules and it print= ed > the test page well =3D) > The only problem now is Epson Inkjet Tool that shows ink levels, cleans > heads, etc when I click on Show ink level it tells: > ERROR: > Cannot open /dev/ulpt0 read/write: Permission denied That tool needs to read and write to /dev/ulpt0, which it can't, because you've set the permission for 'others' to 0. Basically you have two choices here, 1) Change the mode for ulpt0 to 666. This means everybody can read/write to this device. This is unsafe on a multi-user system or on a publicly accessible server. 2) change the group of the program to 'cups', and set it's setgid bit (chmod g+s ...). This means that the program will assume the group 'cups' when it starts, giving it access to the device. IMHO (2) is the best solution, because it gives the program in question enough rights to work, without exposing the rest of the system much. 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) --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGShVQEnfvsMMhpyURAvDPAJ9ZMpUhmamnWDtOFOBEXh7zxqzGggCgq6eo 1LD89ctrOh0zb5Y6RTuiJrc= =4klH -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070515201720.GA62464>