[PHP] PHP Run Command Line
I need to let PHP run a command as SU... is there any way it can be done? I need it to let Courier compile it's makeuserdb and makemaildir. Any help would be great. -- Matt Simpson Design Coordinator [EMAIL PROTECTED] Online Creator Inc 780 Midpark Dr. Suites 105 107 Phone: 613.389.8618 Fax: 613.389.7491 Toll Free: 1.877.768.9327 This transmission is intended only for the correct addressee(s). It may contain privileged or confidential information. Any unauthorized disclosure, copying or retransmission is strictly prohibited. If you have received this transmission in error, please so confirm by sending us a return email copy immediately, then delete the original message. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Run Command Line
on 7/5/01 11:00 AM, Arcady Genkin at [EMAIL PROTECTED] wrote: Matt Simpson [EMAIL PROTECTED] writes: I need to let PHP run a command as SU... is there any way it can be done? I need it to let Courier compile it's makeuserdb and makemaildir. Any help would be great. If you *really* want to do that, you can install `sudo' package, and configure it to allow running a particular command as root to whatever user Apache runs as. sudo is always one of the first things i install on my box. i never login as root if i can help it. being forced to type 'sudo command' always makes me think about what i'm doing. and this is on a box with no users. is this script being run from within apache or on the command line? -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]