I recently used phpformgenerator to create forms, but found that files (e.g., uploaded files) and newly created folders in the "use" sub-directory could not be deleted due to the script assigning ownership to user "nobody". I contacted my host service provider and they said that this is a poorly written script and the only way to fix the problem was to contact the script's author to fix the script, otherwise everytime I create a new form I'd have the same "access denied" problem. Here's what my host's tech support said:
"Some of the files were owned by user 'nobody', which is what php runs as. Some scripts that are not written correctly can create files then not change them back to owned by you. I changed all files under phpform to your ownership."
When I asked tech support if there was a way I could fix the user status so I didn't have to pester tech support everytime I created a new form, he wrote back:
"You'll need to contact the developers of that script to see if there is a reason they are
creating folders as user Nobody."
So that's what I'm doing: Anyone here know the reason this script creates folders assigned to user "nobody"? Is there a way around this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not True. I think your host is trying to pass the buck. I have used this feature with no problems. Files are uploaded, I am owner, and I have no problem removing them when finished.
PHP scripts do not need to control file ownership. When the script runs, it should be run by the script owners account name. Any files created, or uploaded by the script should inherit the script owner permissions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
" Any files created, or uploaded by the script should inherit the script owner permissions. "
Except that they didn't. I created a form named "petstar". The folder "petstar" that was created under the "use" folder was assigned to "nobody" as were all the folders/files under "petstar". I couldn't delete or change any permissions of any of the folders or files in the "petstar" folder. So everytime I tested my form and uploaded a jpg file using the form, the jpg would go into a folder named "files" (under "petstar"). I could not delete these unwanted files from the server, nor could I change the permission for them. VERY FRUSTRATING.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently used phpformgenerator to create forms, but found that files (e.g., uploaded files) and newly created folders in the "use" sub-directory could not be deleted due to the script assigning ownership to user "nobody". I contacted my host service provider and they said that this is a poorly written script and the only way to fix the problem was to contact the script's author to fix the script, otherwise everytime I create a new form I'd have the same "access denied" problem. Here's what my host's tech support said:
"Some of the files were owned by user 'nobody', which is what php runs as. Some scripts that are not written correctly can create files then not change them back to owned by you. I changed all files under phpform to your ownership."
When I asked tech support if there was a way I could fix the user status so I didn't have to pester tech support everytime I created a new form, he wrote back:
"You'll need to contact the developers of that script to see if there is a reason they are
creating folders as user Nobody."
So that's what I'm doing: Anyone here know the reason this script creates folders assigned to user "nobody"? Is there a way around this?
Not True. I think your host is trying to pass the buck. I have used this feature with no problems. Files are uploaded, I am owner, and I have no problem removing them when finished.
PHP scripts do not need to control file ownership. When the script runs, it should be run by the script owners account name. Any files created, or uploaded by the script should inherit the script owner permissions.
" Any files created, or uploaded by the script should inherit the script owner permissions. "
Except that they didn't. I created a form named "petstar". The folder "petstar" that was created under the "use" folder was assigned to "nobody" as were all the folders/files under "petstar". I couldn't delete or change any permissions of any of the folders or files in the "petstar" folder. So everytime I tested my form and uploaded a jpg file using the form, the jpg would go into a folder named "files" (under "petstar"). I could not delete these unwanted files from the server, nor could I change the permission for them. VERY FRUSTRATING.
Right, but this is a function of server setup. The server determines if and when a script runs as and with owner permissions.