Hi !
The entire (PHP-) world seems to have the same problem:
Many providers let you upload as one user, lets say "ftpuser", yet then
apache and your script will run as another user e.g. "nobody"
Allways the same trouble:
You would need to chmod your entire website by ftp-client/telnet, to have
things like a php-based file-editor work...
There IS a chmod as well as a chown in PHP though. Sadly you can't use it,
because (har,har) you don't have the rights. Even if your were equipping
your script with your FTP login and pass, I can't see a way to make use of
it.
So question in short:
Is there any way in PHP to execute a script as another user,
roughly like ftpuser:mypass@my_recursive_chmod.php
or is there a way to take ownership of "another users" files,
as long as you have the credentials ?!?
how do you call shell scripts in PHP anyway?
Is there perhaps a way, to then employ a regular shellscript as in
"take ownership, baby, here are the credentials..."
A million thanks, folks !!!
Frank