[sane-devel] Re: How to configure sane, xsane, etc.

PERRE yannig (DSI NOISIEL) yannig.perre@ext.anpe.fr
Wed, 9 Jun 2004 14:40:08 +0200


Hi,

I think, you'd better try to change the permission for this device in =
the /etc/security/console.perms file. Change your previous scanner line =
with this :

<console>  0660 <scanner>    0660 root.scan_group

Then add user to scan_group group (or whatever_group_you_want) to enable =
access to the scanner.

Also, you can look at the hotplug daemon. For an USB scanner, you need =
to change /etc/hotplug/usb/usbscanner script. I guess, you can look at =
/etc/hotplug/scsi/(.*)scanner for a scsi scanner.

Cheers,

Yannig

-----Message d'origine-----
De : sane-devel-admin@lists.alioth.debian.org
[mailto:sane-devel-admin@lists.alioth.debian.org]De la part de David
Neary
Envoy=E9 : mercredi 9 juin 2004 14:11
=C0 : 'sane-devel@lists.alioth.debian.org'
Objet : [sane-devel] Re: How to configure sane, xsane, etc.



Hi Fran=E7ois,

Fran=E7ois Patte said:
> I am facing a big problem with xsane from fedora C1. (xsane-0.91-1):
>=20
> 1- I have a scanner Nikon LS-2000. The first person who ran=20
> xsane was not=3D
>  root
> and it now impossible to change the owner and right of the=20
> device /dev/sg0.

I have just come across more or less the same problem, and have tracked =
down
the answer.

It seems to be a problem with the default PAM set-up on redhat.

When you start a console, you can use PAM to control access to system
resources (such as a flash card, or scanner, etc) for the duration of =
the
session, and on finishing the session have the permissions revert to =
sane
defaults.

The file which configures how this is done is in
/etc/security/console.perms. You should look for a line which says =
something
like=20
<console> 0600 <scanner> 0600 root

This says that if a user logged on to a console tries to access a file =
in
the scanner class, the permissions on the file will be set to 0600, with =
his
ownership, and when he's finished they'll revert to 0600 and root =
ownership
(at least, I think that's what it means, I don't understand it too =
well).

If you remove this line, restart pam, and change the permissions on =
/dev/sg0
to what you want, they should stick.

Cheers,
Dave.

--
David Neary
Phenix Engineering
110 ave Jean Jaures, 69007 Lyon=20

--=20
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request@lists.alioth.debian.org