What is the device that's hooked up to the parallel port? If it is custom hardware then I guess the right way would be to write a kernel mode driver for it and access it from /dev. You mentioned something about image data. Is it a camera hooked up to the parallel port? Why not have the camera image saved some place on disk and have your script return the image file? Sorry if these are lame suggestions. I haven't touched Linux in a few years now. Have a look at comp.os.linux and comp.os.linux.hardware. This question used to popup there frequently. There is also a mini-HOWTO on IO port access in Linux that may be helpful to you. Shahid -----Original Message----- From: Herbert Graf [mailto:mailinglist2@FARCITE.NET]=20 Sent: Friday, January 09, 2004 10:36 AM Subject: Re: [OT]: Linux Help > On Fri, 2004-01-09 at 15:37, Herbert Graf wrote: > > Was wondering if someone here would be able to help me with=20 > > something. > > > > I have a script on a linux machine that runs a program that accesses > > the parallel port. It seems that I can only access the port as > root. The problem > > is I'd like to run the script as apache (in the cgi-bin). > > > > I've tried setuid but that fails. Anyone know how I might open > up hardware > > access to user apache? Or how to get apache to run the script AS=20 > > root? > > > > Thanks, TTYL > > Use sudo. Edit /etc/sudoers and include something like this; > > apache ALL =3D NOPASSWD: > > Read the man page for sudoers. The decode goes something liek this, > > apache The user to whom this entry aplies > ALL The machines on which the user may run the command > NOPASSWD: Do not require the user to enter their password > <...> The command the user may run as root I looked into sudo, it doesn't appear to be an option, unless you can think of a way to have apache use it when calling a script? I want to access a URL that calls the script, the script returns image data. Thanks, TTYL ---------------------------------- Herbert's PIC Stuff: http://repatch.dyndns.org:8383/pic_stuff/ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.