[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Permission Problem with xsane - more



On Thu, Sep 29, 2011 at 04:20:01PM -0400, Thomas H. George wrote:
> I can run xsane as root but not as user tom although tom is a member of
> the scanner group.  What other group membership is required?
> 
As suggested by responders I have confirmed that I have always been a
member of the scanner group and I have modified
/lib/udev/rules.d/60-libsane.rules.  This had no effect.  

To pinpoint the problem I ran strace -f -e trace=open,read xsane
2>/tmp/output.  Here is the tail of /tmp/output


[pid  3335] open("/usr/share/locale/en_US.utf8/LC_MESSAGES/sane-backends.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  3335] open("/usr/share/locale/en_US/LC_MESSAGES/sane-backends.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  3335] open("/usr/share/locale/en.UTF-8/LC_MESSAGES/sane-backends.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  3335] open("/usr/share/locale/en.utf8/LC_MESSAGES/sane-backends.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  3335] open("/usr/share/locale/en/LC_MESSAGES/sane-backends.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  3335] open("/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf", O_RDONLY) = 12
[pid  3335] close(12)                   = 0
[pid  3335] read(7, 0x200f0c4, 4096)    = -1 EAGAIN (Resource temporarily unavailable)
[pid  3335] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  3336] +++ killed by SIGSEGV +++

Checking back in /tmp/output the last file 7 opened was /etc/passwd.
The passwd file was read successfully several times with a different
specification (user tom presumably).  This last read must be for root
permission as xsane will run with no segmentation fault if run by user
root.

Incidently, I found sane-backends.mo is only in /usr/share/locale/en_GB.

Any suggestions of how better to pinpoint the cause of the problem?

> Tom
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20110929202001.GA3028@tomgeorge.info
> 
> 


Reply to: