ownership problems
Posted: Sun Oct 26, 2003 11:13 am
This is more of a Unix-related problem, but maybe you guys now how to fix it. I have a php script that creates some directories and files on my server. The script then assigns itself as the sole owner of the files, prohibiting me from modifiying or removing them afterwards. So the only way I can remove them or do anything with them is through another script. The problem ( apart from this being quite annoying) is that I need the users of my website to be able to store and delete files from those new folders using FTP. Right now that doesn't work because the ftp connection gets established with my personal username, and the files in question are only allowed to be changed by the script because of the ownership settings.
What I want basicly is to add my own username as an valid owner of those files, so I can perform actions on them without having to use php.
I tried to let the script change ownership with chown(), but it gives me an error: (Warning: chown() [function.chown]: Operation not permitted ). When I try to do a chown through my shell it doesn't work either.
(chown: changing ownership of <filename>: Operation not permitted)
Chmod and chgrp didn't make any difference.
I don't have root access on my server, but surely there's a way to let my own scripts share their files with me? If you have the answre please let me know!
thanks
What I want basicly is to add my own username as an valid owner of those files, so I can perform actions on them without having to use php.
I tried to let the script change ownership with chown(), but it gives me an error: (Warning: chown() [function.chown]: Operation not permitted ). When I try to do a chown through my shell it doesn't work either.
(chown: changing ownership of <filename>: Operation not permitted)
Chmod and chgrp didn't make any difference.
I don't have root access on my server, but surely there's a way to let my own scripts share their files with me? If you have the answre please let me know!
thanks