Permissions question - again :(
Posted: Mon Jan 23, 2006 7:32 pm
Ok so I've read up on permissions and such trying to make sense out of this mess I'm in...
My understanding goes like...
PHP is likely run as a 'nobody' user...as in has very limited access priv's...especially in a shared host environment...
Just to make clear (for myself) PHP is not likely run as a Linux root/super user???
Lets assume the username is: thecamp
Now, any PHP scripts executed run under the context of 'thecamp' user...
When PHP creates a file, its UID should be 'thecamp'
When I FTP a file/folder to my web server...I can change the permissions via FTP, but when I create a file/folder via a PHP script and try and change the CHMOD, etc inside the FTP app...I get permission denied errors...in the FTP app console???
I also get SAFE MODE errors...which I understand is due to the differences of UID's...
But why would these UID's be different?
Does this suggest that the ftpd and php are executing under different user contexts???
This is a shared host, so I have NO ROOT access...so I don't think CHOWN is any good to me...unless I misunderstand how this whole permission system works...
Any ideas???
This is driving me nutts
Cheers
My understanding goes like...
PHP is likely run as a 'nobody' user...as in has very limited access priv's...especially in a shared host environment...
Just to make clear (for myself) PHP is not likely run as a Linux root/super user???
Lets assume the username is: thecamp
Now, any PHP scripts executed run under the context of 'thecamp' user...
When PHP creates a file, its UID should be 'thecamp'
When I FTP a file/folder to my web server...I can change the permissions via FTP, but when I create a file/folder via a PHP script and try and change the CHMOD, etc inside the FTP app...I get permission denied errors...in the FTP app console???
I also get SAFE MODE errors...which I understand is due to the differences of UID's...
But why would these UID's be different?
Does this suggest that the ftpd and php are executing under different user contexts???
This is a shared host, so I have NO ROOT access...so I don't think CHOWN is any good to me...unless I misunderstand how this whole permission system works...
Any ideas???
This is driving me nutts
Cheers