PDA

View Full Version : Cannot change file permissions! Ownership prob



prem
March 16th, 2003, 01:18
I am running a message board and so files are created from the input forms. IN the messages dir, most of the files have the owner as "prem" [ my username] but some of the files have the owner "nobody". This leads to the problem that the files cannot be opened by the scripts.

The httpd on my server is run as nobody but my user is prem. I am just a user on the server.

As I run under the user "prem" , I cannot chown the files which have the owner as nobody .


How can I fix the problem and whats the cause of the problem???


Pls help.

CareBear
March 16th, 2003, 03:15
PHP runs in the context of Apache so any files it creates will be owned by "nobody". Put in a support ticket and ask your host to delete them if you need them gone or try your control panel. Ensim can delete them fine, don't know about any of the others.

kabatak
March 16th, 2003, 03:48
i had a similar problem where in i gave someone an extra ftp account to my server and when i accessed his folder it changes the ownership, and i couldn't do anything with it anymore. i tried php chmod() but it doesnt work even if i run the script on the master ftp account.

xoom
March 17th, 2003, 04:03
You can delete these files by run a PHP script.
I got a free script to do that but it was written in Chinese.
Anyway if you want it,I will post the URL to download it.

kabatak
March 17th, 2003, 06:51
Pls post it thanks.

xoom
March 17th, 2003, 16:18
http://im286.com/down/show.php?id=4&down=1
Uncompress the file,Upload the DEL.PHP and rename it to del.php(lower).
Run it and enter the file or dir name you want to delete,then submit. It will delete the files for you.
HIH