This is about file and directory ownership (on Unix based servers).
I have a file to post via ftp on a server.
The file ownership is mine as the ftp account holder for the hosting service server.
The same is true for directories I create.
If I write php scripts that create files and directories, the ownership of those files
and directories are the web server user; EG nobody, or _www or whatever.
I can write scripts to change ownership to me. But if I am the owner of the file
or directory, I cannot change the ownership to the web server user with a php script(?)
IS there an ftp command for changing ownership of files and directories to the
web server user? The only other way is to ssh into the server and know the root
password, not likely with a remote host.
This is a security consideration. IF all the files are mine, then the write permission
for directories and files have to include 'everyone'.