suexec will not allow a program to run as root. There is a way to setup an alias ID to have suexec run as root (thanks to ahoffman for that) but I really don't want to have anything to do with root.
I know that a lot of programs have the same requirement as I and I know that they do not run as root. Everything from eCommerce apps to discussion group software access a mySQL database and supply and ID and password.
Main Topics
Browse All Topics





by: RedimidoPosted on 2004-03-08 at 15:16:40ID: 10545411
the file where you should store the password must be only readable by root, with 600 permissions. your suid program will run as root and then that program will access the file to read the password.
this way final user is not able to read the file, while the program once running can.