The device you try to connect to should be accessible by the user who run= s=20 scanimage, xscanimage, xsane, etc... do a=20 ls -al /dev/scanner and ls -al /dev/sg1 to check that "other users" are allowed to read and write the device. If = not,=20 use chmod 766 /dev/sg1 chmod 766 /dev/scanner to grant read-write access to all users to those devices. =20
The other problem (connecting to display: :0.0) looks like a permissionin= g=20 issue under X.=20 You could change the DISPLAY environment variable before trying to run=20 xscanimage with root to set it to another display ? =20 Le Lundi 13 Janvier 2003 05:05, Barry Kirsten a =E9crit : > Hi Henning, > > On Mon, 13 Jan 2003 08:15, Henning Meier-Geinitz wrote: > > Well, what does happen when you try to scan? Try scanimage >image.pnm= =2E > > If that doesn't work, set the debug variable. Do the same for xsane. > > Do you use both xsane and scanimage as the same user? Otherwise there > > may be permission problems. I only one version of SANE installed? > > Otherwise xsane may use the other one. > > scanimage works, but only when run as root. When I try scanimage as a > normal user I get the message: scanimage: no SANE devices found. This i= s > similar to when I try to start xsane from KDE as normal user: xsane: no > devices found. > > Note...sane and xsane are set up for anyone to execute, so not a permis= sion > problem. > > There is certainly only one copy of xsane running. To be certain I trie= d > removing it with apt-get remove twice, (and also for sane on its own) a= nd > got nothing. > > I think this is part of the problem...when I try to start xsane as root= , I > get: > > debian:/home/barry# xsane > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server > > Gtk-WARNING **: cannot open display: :0.0 > > I'm out of my depth here. Is this a problem with permissions/access > somewhere in X? (Don't forget, I was root when starting xsane from > terminal.) Also the version of xsane I'm using is 0.84-2 from the Debia= n > stable CDs. > > Many thanks for your help, > Barry > _______________________________________________ > Sane-devel mailing list > [email protected] > http://www.mostang.com/mailman/listinfo/sane-devel
