[edit]
Don't worry, I answered my own question, but I'll leave this as a tip for others:
When you create a directlory with php and make it 0755, you basically leave yourself out of the permission. Crawl over the directory structure with a CHMOD.
_______________________________________
Hi all,
I have an odd problem. I have written a very useful php script that results in a few files and folders being created. The folders get created with 755 permissions and the files get created (then chmod-ed) with 777 permissions.
Now I can't delete the files and folders. I've tried over ftp, in the control panel, using a cron job. I even have limited shell access on my account, so I tried rm -r -f directly on the folders, but they won't budge.
If there are any admins reading this who are curious, the path (on iron) is:
/home/beatgroo/public_html/makeit/mine3/sect1001.Implement_continuous_improvemen t_systems_and_processes_/page1001.Implement_continuous_improvemen t_systems_and_processes_.php
I have also (accidently) made some files with \r\n and \r chars in the title -- I don't expect to be able to delete them since I can't reference the files (oops!). [Same path, but "mine1"]
Is there a way for me to delete such files without a support ticket? (ie. I want to keep using the script since it saves me hours of work.)
I'm thinking it's the '755' folders that cause the problem, since the "owner" is the php thread, not me. (So what I'm asking is, should there be a way to write a script to chmod each folder?)
Thanks in advance for any tips!
![]()


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks