# Re: newbie question

Wolfgang Denk (wd@denx.de)
Mon, 19 Jul 1999 09:10:48 +0200

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Petter Reinholdtsen: "Re: Release early, release often"
- Previous message: Wolfgang Denk: "Re: Scanjet 5P and seg fault"
- Maybe in reply to: Tomm Aldridge: "newbie question"

In message <3792C39F.A2A0D9A4@home.com> you write:
>
> When I run xscanimage as root it works. When I run it from another user
> directory it fails as shown below. What's happening?
>
>
> [tomm@SMP tomm]$ /usr/local/bin/xscanimage
> xscanimage: no devices available.

That's because xscanimage cannot open your scanner device; /dev/sg?
probably has permission `rw-------' allowing root access only.

Either make it accessable to everybody (`chmod 0666 /dev/sg?') -
potential security risks involved; or make it accessable to a special
"scanner user" group and make xscanimage SETGID, or configure `sudo'
to allow the users to use xscanimage (preferred solution).

Wolfgang

    --
    Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
    Phone: (+49)-8142-4596-87  Fax: -88  Home: -86  Email: wd@denx.muc.de
    The important thing about being a leader is not being right or wrong,
    but being *certain*.                    - Terry Pratchett, _Truckers_

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

     Next message: Petter Reinholdtsen: "Re: Release early, release often"
     Previous message: Wolfgang Denk: "Re: Scanjet 5P and seg fault"
     Maybe in reply to: Tomm Aldridge: "newbie question"