Re: Help Exec() !!!
| From: | Jeffrey Barendse | Date: | Thu, 15 Jun 2000 13:10:35 +0000 |
| Subject: | Re: Help Exec() !!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1929@lists.php.net to get a copy of this message | ||
> Alberto Garelli
> 06/12/2000 14.57
>
> Per: php-general@lists.php.net
> Cc:
> Oggetto: Help Exec() !!!
>
> I'm not able to run shell commands which require root's permissions
> (like "useradd", "groupadd", etc.) using php3 function "exec()".
> Have I to
> re-compile Apache with "BIG_SECURITY_HOLE" (i don't like to do this...) or
> is there another way to do ??
eeeeh that is a dangerous plan :-)
You can better use the programme SUDO. You can download it from site's like
linuxberg. The program makes it possible to give A users SOME rights to
other files.
Example:
You can give user nobody rights to run a system file like init. From the
console you can type "SUDO init" as NOBODY and you can shutdown the system.
See the SUDO man pages for much more options and functions. I always use
SUDO for this kind of work.
>
> Thank you very much for your help ....
>
> Alberto
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
I hope you this information is useful for you,
Jeffrey Barendse