Re: Problem with SANE and SCSI scanner

Laura DeWitt (cats-rule@home.net)
Sat, 27 Nov 1999 15:11:43 -0600

One additional piece of information, when I try to run the scanimage
command as root, it gets to the attach step and then locks up my machine.
I can't break out of it with a <ctrl><alt><del>, I have to powercycle.

sh-2.03$ su root
Password:
Warning: your password will expire in -13 days
[root@c554912-a ldewitt]# ls -l /dev/sg*
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg0 -> sga
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg1 -> sgb
crwxrwxrwx 1 root root 21, 10 Nov 10 03:57 /dev/sg10
crwxrwxrwx 1 root root 21, 11 Nov 10 03:57 /dev/sg11
crwxrwxrwx 1 root root 21, 12 Nov 10 03:57 /dev/sg12
crwxrwxrwx 1 root root 21, 13 Nov 10 03:57 /dev/sg13
crwxrwxrwx 1 root root 21, 14 Nov 10 03:57 /dev/sg14
crwxrwxrwx 1 root root 21, 15 Nov 10 03:57 /dev/sg15
crwxrwxrwx 1 root root 21, 16 Nov 10 03:57 /dev/sg16
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg2 -> sgc
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg3 -> sgd
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg4 -> sge
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg5 -> sgf
lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg6 -> sgg
lcrwxrwxrwx 1 root cdwriter 21, 8 Nov 10 03:57 /dev/sg8
crwxrwxrwx 1 root cdwriter 21, 9 Nov 10 03:57 /dev/sg9
crwxrwxrwx 1 root cdwriter 21, 0 May 5 1998 /dev/sga
crwxrwxrwx 1 root cdwriter 21, 1 May 5 1998 /dev/sgb
crwxrwxrwx 1 root cdwriter 21, 2 May 5 1998 /dev/sgc
crwxrwxrwx 1 root cdwriter 21, 3 May 5 1998 /dev/sgd
crwxrwxrwx 1 root cdwriter 21, 4 May 5 1998 /dev/sge
crwxrwxrwx 1 root cdwriter 21, 5 May 5 1998 /dev/sgf
crwxrwxrwx 1 root cdwriter 21, 6 May 5 1998 /dev/sgg
crwxrwxrwx 1 root cdwriter 21, 7 May 5 1998 /dev/sgh
crwxrwxrwx 1 root cdwriter 21, 8 Nov 10 03:57 /dev/sgi
crwxrwxrwx 1 root cdwriter 21, 9 Nov 10 03:57 /dev/sgj
crwxrwxrwx 1 root cdwriter 21, 10 Nov 10 03:57 /dev/sgk
crwxrwxrwx 1 root cdwriter 21, 11 Nov 10 03:57 /dev/sgl
crwxrwxrwx 1 root cdwriter 21, 12 Nov 10 03:57 /dev/sgm
crwxrwxrwx 1 root cdwriter 21, 13 Nov 10 03:57 /dev/sgn
crwxrwxrwx 1 root cdwriter 21, 14 Nov 10 03:57 /dev/sgo
crwxrwxrwx 1 root cdwriter 21, 15 Nov 10 03:57 /dev/sgp
crwxrwxrwx 1 root cdwriter 21, 16 Nov 10 03:57 /dev/sgq
[root@c554912-a ldewitt]# ls -l /dev/scanner
lrwxrwxrwx 1 root root 8 Nov 24 19:54 /dev/scanner ->
/dev/sga
[root@c554912-a ldewitt]# id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),1001(cbbuser)

> > sh-2.03$ scanimage -d canon:/dev/scanner
> > [sanei_init_debug]: Setting debug level of canon to 128.
> > [canon] >> sane_init
> > [canon] sane_init: sane 1.0.1
> > [canon] >> attach_one
> > [canon] >> attach
> > [canon] attach: opening /dev/scanner
> > [canon] attach: open failed: Access to resource has been denied
> > [canon] << attach_one
> > [canon] << sane_init
> > [canon] >> sane_open
> > scanimage: open of device canon:/dev/scanner failed: Invalid argument
> > [canon] >> sane_exit
> > [canon] << sane_exit
>
> Hi, Laura.
>
> It sounds like a problem with the permissions of /dev/scanner.
> Try (as root):
>
> chmod 777 /dev/scanner /dev/sg*
>
> Then try scanimage again (not as root).
>
> If it still fails, send me the output of:
>
> ls -l /dev/scanner /dev/sg*
>
> and
>
> id

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com