Re: Execute command line as a different user
| From: | Daniel Brown | Date: | Mon, 07 Jul 2008 14:44:00 +0000 |
| Subject: | Re: Execute command line as a different user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276362@lists.php.net to get a copy of this message | ||
On Tue, Jul 1, 2008 at 1:17 PM, Matt palermo <mpalermo@vt.edu> wrote:
> My PHP is running as a user with limited rights. I'd like to execute a
> command line as a different user. I'm trying to delete a file and the PHP
> user doesn't have access to do this. I know the username and password for
> the admin user that has rights to delete a file. Is there a command I can
> use to make PHP run a delete command as the admin user? If so, how can I do
> this?
You can always create a script and have crond handle it running as
the admin user, if you're on *NIX. Otherwise, check into the Winblows
command
AT.
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.