From owner-freebsd-questions@FreeBSD.ORG Tue May 15 20:17:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6FAD16A404 for ; Tue, 15 May 2007 20:17:26 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id 8162713C44C for ; Tue, 15 May 2007 20:17:22 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id l4FKHL61024084; Tue, 15 May 2007 22:17:21 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id B0477B82B; Tue, 15 May 2007 22:17:20 +0200 (CEST) Date: Tue, 15 May 2007 22:17:20 +0200 From: Roland Smith To: Anton Galitch Message-ID: <20070515201720.GA62464@slackbox.xs4all.nl> Mail-Followup-To: Anton Galitch , freebsd-questions@freebsd.org References: <7c80322b0705150951t78bb77edk5e3259de80942ee8@mail.gmail.com> <20070515174417.GA58412@slackbox.xs4all.nl> <200705151456.25685.lists@jnielsen.net> <20070515190230.GC59938@slackbox.xs4all.nl> <7c80322b0705151206m2e7d5c33l9dbdd7893f882e68@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <7c80322b0705151206m2e7d5c33l9dbdd7893f882e68@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Anyone could make Epson Stylus cx4700 work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 20:17:27 -0000 --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--