Date: Thu, 3 Feb 2011 23:13:04 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Rem P Roberti <remegius@comcast.net> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Running Xsane as user Message-ID: <20110203221304.GA36175@slackbox.erewhon.net> In-Reply-To: <4D4B2104.7080802@comcast.net> References: <4D4B2104.7080802@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 03, 2011 at 01:41:24PM -0800, Rem P Roberti wrote: > Boy, this kind of problem has been following around lately. When I=20 > attempt to start Xsane as user I get an error message telling me "No=20 > device available." One of the help options states that the permissions= =20 > for the device file may not allow its use---try as root. Naturally,=20 > when I start the program as root it recognizes the scanner and works=20 > perfectly. But I sure don't want to run this program as root. I=20 > thought that I had all of my permissions taken care of in=20 > /etc/devfs.conf, but apparently I don't. Either that or it really isn't= =20 > a permissions problem to begin with, in which case I'm not sure where to= =20 > start looking for a solution. The file devfs.conf is only for devices that are connected at boot. For devices like USB that are plugged in after booting, you should use devfs.rules. Read the manpages for devfs.conf and devfs.rules.=20 I've got the following in my /etc/devfs.rules for USB devices; add path 'usb/*' mode 0660 group usb add path 'ugen*' mode 0660 group usb Of course my user-id is in the usb group. If you trust all users of the sys= tem then 'mode 0666' would suffice, and you don't need to use a special group. 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) --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk1LKHAACgkQEnfvsMMhpyWroACcD3+gFzA0C+doz5sumAg8DIS1 FpwAnAqZpHNO6xYgkZyWQn3iv36Yu8SQ =NDKe -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110203221304.GA36175>