Le jeu, 07 sep 2000, Arnaud Calvo a �crit : > Bonjour > > J'ai enfin r�ussi � faire fonctionner mon scanner, mais je dois lancer "insmod > parport" et "insmod pt_drv" avant de pouvoir l'utiliser. Et ceci en root. > > Y aurait-il un moyen de contourner cette "mesure de s�curit�", pour ne pas > avoir � donner le mot de passe root � chaque fois, mais sans donner > l'autorisation � tout le monde de charger n'importe quel module ? > > Merci Ton scan est sur port//, seul "root" peut y avoir acc�s. Je te joins l'astuce que m'a envoy�e Karl Heinz K. le programmeur de driver "epson" pour sane. Bonne chance, serge. -- T'as le bonjour de LEO! http://leoloden.citeweb.net/
Serge, unfortunately the parallel port scanners work only for the root user. The reason for this is that it's not sufficient to have write access to the special device file (/dev/lp0 or similar), you also need permission to write to the I/O ports directly, and this can only be done by root. Now there is a way to at least let you start your scan program as regular user, and let the software take care of switching to the root user automatically. You have to select the "Set UID bit" for the scan programs scanimage, xscanimage and (if you are using it) xsane. You have to be root to do this. Then you have to change the ownership and the file mode on these programs: chown root.root xscanimage chmod 4755 xscanimage Repeat this for all the programs that need to access the scanner. You can also restrict who can scan by using a different group: After you create the group "scan" you could put yourself (and any other user who should be able to scan) into the "scan" group. Then you do this: chown root.scan xscanimage chmod 4750 xscanimage Hope this helps, Karl Heinz
