views:

14

answers:

0

I am trying to write a PHP script that will create a file in a dir and fopen)() and then fwrite() to it. -- No success (if curious why then read through this thread http://stackoverflow.com/questions/2230391/php-shell-exec-and-sudo-must-be-setuid-root)

Approaching this from a different angle, I am considering using a .htaccess with a mod_auth (or some relevant) directive that would allow a user to log into a restricted directory using "root" credentials of one of the "ftp user accounts" on the server.

I know that Basic Authentication requires me to create users and passwords (which ultimately does not get me the permissions I need).

Does mod_auth allow authentication to "root" or an "ftp user account"?

If so, can you supply me with the directives?

Thank you very much.