|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] SANE with parallel scanner on Debian
|
On Thu, Jul 26, 2001 at 09:52:33PM -0400, Bill Jonas wrote:
> I haven't played much with scanners under Linux, so I may be off here...
> but based on what you said, it definitely sounds like a permissions
> problem.
Oh, BTW, if you're not sure what files it's trying to access, run
strace. For the sake of example, let's say that the command you use to
operate the scanner is $scanner_cmd. Do this:
$ $scanner_cmd 2>&1 |grep open
That should tell you what files the program is trying to access. For
example, this is what I get doing it with ls:
bj@epoch:/usr/local/games/quake3$ strace ls 2>&1 |grep open
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/librt.so.1", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/etc/mtab", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY) = 3
That ought to give you some serious clues as to which files you need to
examine the permissions of.
--
Bill Jonas * bill@billjonas.com * http://www.billjonas.com/
"As we enjoy great advantages from the inventions of others, we should
be glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously." -- Benjamin Franklin
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|