Re: System() works on /usr/sbin commands
| From: | Curt Zirzow | Date: | Thu, 31 Jul 2003 06:56:19 +0000 |
| Subject: | Re: System() works on /usr/sbin commands | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157677@lists.php.net to get a copy of this message | ||
* Thus wrote tirumal b (tirumal_b@yahoo.com):
> hello,
>
> yes the /usr/sbin commands require root permissions
> but is there any way to run these commands using
> system() through suid or something.please let me know
I would seriously not recomend not to suid the script. The
/usr/sbin/* files require root for a reason.
Your best choice is:
> su
# php file.php
# exit
Curt
--
"I used to think I was indecisive, but now I'm not so sure."