Hi!
I have a program /bin/something, which is generally hidden, that is
/ {
/bin/something h
}
and a script /bin/exec_something.php based on /usr/php-cgi/bin/php, which sets up by it's code /bin/something using function system() and/or shell_exec(). Of course I've set an access of the script to /bin/something, and that is
subject /bin/exec_something.php {
/bin/something rx
}
Unfortunately system() and shell_exec() perform commands from shell level and I get info:
(default:D:/bin/bash) denied access to hidden file /bin/something by /bin/bash[sh:12129] uid/euid:0/0 gid/egid:0/0, parent /bin/exec_something.php[exec_something.php:13600] uid/euid:0/0 gid/egid:0/0
Is it possible to make PHP script /bin/exec_something.php run the program /bin/something but without giving the access for /bin/bash ?