Re: [SLE] Cannot scan as except as root on SuSE 8.2.
Hi Carlos, Carlos E. R. wrote:
El 2003-09-24 a las 21:08, Guy Zelck escribió:
There is a command line resmgr. You may check the actual permissions you have:
cer@nimrodel:~> /sbin/resmgr list rws- /dev/scanner rw-- /dev/usbscanner rw-- /dev/usb/scanner rw-- /dev/usb/scanner0 rw-- /dev/usb/scanner1
My output is :
rws- /dev/scanner rw-- /dev/usbscanner rw-- /dev/usb/scanner rw-- /dev/usb/scanner0 rw-- /dev/usb/scanner1 rw-- /dev/usb/scanner2 rw-- /dev/usb/scanner3 rw-- /dev/usb/scanner4 rw-- /dev/usb/scanner5 rw-- /dev/usb/scanner6 rw-- /dev/usb/scanner7
This seems ok. I'm beginning to think that although I logged in via kdm that somehow the "desktop" class hasn't been set. This is maybe due to the fact that I installed kde 3.1.3 packages. They were build for SuSE though ( Packager : http://www.suse.de/feedback).
Acording to the above, you do have permission to use the scanner. Man resmgr says:
list [family] Display the list of devices available to the user.
and "user" is the user calling resmgr.
There's nothing wrong with the resmgr setup as such. It's just that my user isn't recognized as belonging to the 'desktop' class and thus gets no access to the devices. So I tried this as root : resmgr login guy /dev/pts/2 resmgr grant guy desktop This makes me explicitly a member of the desktop class. But guess what, it still doesn't work. Whether I use xsane or xscanimage has nothing to do with it. The other problem is there isn't realy a device when using libusb. sane-find-scanner shows the following : found USB scanner (vendor=0x03f0, product=0x0401) at libusb:001:002. If I try "resmgr open -ro /dev/usb/scanner0" as root it yields : status code 502 server message follows: permission denied If you do "ldd /opt/kde3/bin/kdm", do you get the same as I get? Nmly : libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40028000) libpam.so.0 => /lib/libpam.so.0 (0x400f6000) libdl.so.2 => /lib/libdl.so.2 (0x400fe000) libresolv.so.2 => /lib/libresolv.so.2 (0x40101000) libutil.so.1 => /lib/libutil.so.1 (0x40113000) libc.so.6 => /lib/libc.so.6 (0x40117000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Just thought that maybe I should see /lib/libresmgr.so.0.1 in the list but I guess not. Probably libpam is enough but I wonder how pam knows that is has to go look in pam.d/xdm to verify things. The resultcode you get in your logs is 200 as I expected. This is good and better than the 502 I get.
My kde is the one that came with suse 8.2 with the updates YOU did. The scanner is an epson 1650, using usb, yes. The permissions are, right now:
crw------- 1 cer root 180, 48 2003-03-14 14:08 /dev/usbscanner crw------- 1 cer root 180, 48 2003-03-14 14:08 /dev/usb/scanner0 crw------- 1 cer root 180, 49 2003-03-14 14:08 /dev/usb/scanner1
I plan to put back the original kde 3.1.1 and see if that solves things. Guy.
The 03.09.28 at 13:37, Guy Zelck wrote: Ah, I forgot to answer this one.
There's nothing wrong with the resmgr setup as such. It's just that my user isn't recognized as belonging to the 'desktop' class and thus gets no access to the devices. So I tried this as root : resmgr login guy /dev/pts/2 resmgr grant guy desktop
This makes me explicitly a member of the desktop class. But guess what, it still doesn't work. Whether I use xsane or xscanimage has nothing to do with it.
Can you try using some other desktop, like gnome, windowmaker, or whatever? Or even, a desktop started from the command line (startx) from runlevel 3 on a console?
The other problem is there isn't realy a device when using libusb. sane-find-scanner shows the following : found USB scanner (vendor=0x03f0, product=0x0401) at libusb:001:002. If I try "resmgr open -ro /dev/usb/scanner0" as root it yields : status code 502 server message follows: permission denied
If you do "ldd /opt/kde3/bin/kdm", do you get the same as I get? Nmly
I get: cer@nimrodel:~> ldd /opt/kde3/bin/kdm libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4002d000) libpam.so.0 => /lib/libpam.so.0 (0x400fb000) libdl.so.2 => /lib/libdl.so.2 (0x40103000) libresolv.so.2 => /lib/libresolv.so.2 (0x40106000) libutil.so.1 => /lib/libutil.so.1 (0x40119000) libc.so.6 => /lib/libc.so.6 (0x4011c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) It is not exactly the same.
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40028000) libpam.so.0 => /lib/libpam.so.0 (0x400f6000) libdl.so.2 => /lib/libdl.so.2 (0x400fe000) libresolv.so.2 => /lib/libresolv.so.2 (0x40101000) libutil.so.1 => /lib/libutil.so.1 (0x40113000) libc.so.6 => /lib/libc.so.6 (0x40117000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Just thought that maybe I should see /lib/libresmgr.so.0.1 in the list but I guess not. Probably libpam is enough but I wonder how pam knows that is has to go look in pam.d/xdm to verify things.
I don't know, I don't understand pam yet.
I plan to put back the original kde 3.1.1 and see if that solves things.
Well, if it works, you know what the problems is :-) -- Cheers, Carlos Robinson
participants (2)
-
Carlos E. R.
-
Guy Zelck