<PRE>i have a massive number of files that i uploaded, and i want to change the perms to 0777. i wrote this recursive function to do it, but it gives me the error: "Warning: chmod failed: Operation not permitted ..."
i can easily chmod() any files that i uploaded via a script (uid=102), but the ones i uploaded via ftp (CUTEFTP) have a completely different uid (uid=10xx).
i cannot chown() with the script. same error.
THE QUESTION IS: is there a way to have the script create a file as a user, or "log in" as a specific user for the duration of a script?
NOT SOLUTIONS: chown(), manual effort, editing any system files
</PRE>