RE: [PHP] Running PHP scripts with root permissions!!!
| From: | Krznaric Michael | Date: | Wed, 16 Aug 2000 14:39:16 +0000 |
| Subject: | RE: [PHP] Running PHP scripts with root permissions!!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12020@lists.php.net to get a copy of this message | ||
I saw the other post use sudo? What's sudo? Do you mean set UID?
Mike
-----Original Message-----
From: Web Admin [mailto:webadmin@morva.net]
Sent: Wednesday, August 16, 2000 10:32 AM
To: php-general@lists.php.net
Subject: [PHP] Running PHP scripts with root permissions!!!
Hi everybody,
Does anyone know how to run php scripts with root permissions?
For example, i want to write a php script which shows last system
messages using tail /var/log/messages.
How can I do that without chmod 777 /var/log/messages!!
That's very very URGENT!!
httpd is being run by nobody. Should I change it? The owner can't
be root in Apache (latest version).
Regards,
Ahmad Anvari