cPanel is the interface that my webhost uses. Generally it has worked great for me, as it is relatively easy to learn where the controls are for the minimal stuff that I'm doing with my website.
Recently that has changed. I'm finding that it has become difficult to predict how the permissions will be set when I upload files (jpg's and subdirectories) to my webhost's server.
For example, I set up a directory here: http://www.mydomain.com/Directory/
I did not make it write protected. Then I added an index.htm file and a JPEG image.
OK so far - Directory has 0755 permissions. Then I added a second Directory under it: http://www.mydomain.com/Directory/Directory and added copies of index.htm andmydomain.jpg. Still OK - the additional Directory also has 755 and the image is 0644. Still OK.
Then I threw in the monkey wrench. I uploaded AnotherDirectory at the same level as the second Directory, so the listing under http://www.mydomain.com/Directory/ reads "index.htm over Directory over AnotherDirectory." The permissions of AnotherDirectory are 0750, and the permissions of the images in the AnotherDirectory directory are a mix of 0640 and 0644.
That's bad enough. When I first went through this process, I attempted to change the permissions to 0755 for the directories and 0644 for the images. Some of my changes stuck, and others did not. It did not seem to matter whether I was uploading with gFTP under linux/debian/lenny or with CuteFTP under WinXP - some images and directories were getting the wrong permissions either way.
"Changing permissions recursively" seems to be troublesome with cPanel. In the "good old days" before some apparently recent changes, I could make a directory under the public_html folder and then password protect it, and then all the subdirectories in that directory would all be accessible, once the user satisfied the username/password challenge at the main password-protected directory. Not so any more - I get constant complaints that some directories or images are inaccessible. The same thing is happening when I set up an unprotected (0755) directory and add directories under it - the permissions ought to be 0755 for directories and 0644 for images and html files, but are 0750 and sometimes 0640 instead.
How do I avoid this pitfall ? Right now I cannot predict cPanel's behavior.
Thanks,
George Langford
georgesbasement



LinkBack URL
About LinkBacks
Reply With Quote





