On Thu, 8 Jan 2004 21:37:14 -0500 Herbert Graf wrote: > Was wondering if someone here would be able to help me with 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 root? Are you sure the script will run without accessing the port? Have you tried commenting out that part and running the script as apache (or whatever uid apache is running as?) Also, if your script runs with a gid the same as /dev/lp* and the mode for /dev/lp* is 660 or better it should work. david -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.