I'm writing a program that will execute external programs under a linux machine. This program will run as root and each external program must be run by the user that is calling it...
in the exec.conf file I have:
The prog will read the file and should execute the binary as the user, in this case /bin/apache_clean by the user apache.
I'm using execv to execute the external program but I didnt find out how to execute it as another user. I've tryed execve with no sucess.
Any ideias ?