Re: Solaris works! New problem.

From: Gregory Gulik (greg@gulik.org)
Date: Fri Feb 09 2001 - 08:51:14 PST

  • Next message: Roy Mathew: "Re: Microtek X6, USB and slackware problems"

    Ok, this is weird....

    If I run the xscanimage program right from the sane build directory
    it seems to run fine. But, if I run identical executable from the
    installed location in /usr/local/bin it complains that it can't find
    a shared library:

    $ cksum /opt/local/sane/sane-1.0.3/frontend/.libs/xscanimage
    /usr/local/bin/xscanimage
    424910297 779096 /opt/local/sane/sane-1.0.3/frontend/.libs/xscanimage
    424910297 779096 /usr/local/bin/xscanimage

    $ /usr/local/bin/xscanimage
    ld.so.1: /usr/local/bin/xscanimage: fatal: libgmodule-1.2.so.0: open failed:
    No such file or directory
    Killed

    It's important to note that the executable in /usr/local/bin is setuid
    to root so it can access /dev/scg1. I then changed the ownership on the
    /dev/scg1 device to my own user id then made the xscanimage executable
    setuid to that and it works fine.

    Why won't xscanimage run setuid root?

    -- 
    Greg Gulik                                 http://www.drivingevents.com/
    greg@gulik.org or greg@gagme.com           http://www.gagme.com/~greg/
    

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



    This archive was generated by hypermail 2b29 : Fri Feb 09 2001 - 08:52:22 PST