By Lam0r on
I have a folder "files/avatars" now there is some remote permission set so I cant access that folder suddenly. I have read this rather "too technicall" topic for me and understood that I have to do some stuff. What exactly do I have to do ? I want to recover some avatars from my site since I upgraded my drupal recently. I am aware of the "picture" variable from the user table in the database. Thanks in advance
Comments
oops forgot to include the
oops forgot to include the link referring to http://drupal.org/node/10658
Folder permissions
It depends on who has created the folder. If it was you through FTP, then the permissions are most likely set that only you can access them. If created by the web user (i.e. through Drupal), then only the web user can access them.
You can change permissions through an FTP client. Usually you can right-click folders and set permissions.
--
If you have a problem, please search before posting a question.
the permission is set with
the permission is set with drupal as far as I am aware and it was created by drupal when I enabled the picture support. I cant access nor change permission. The CHMOD is on 740 now and I cant change it :|
Control panel
Depending on your hosting service there should be some form of control panel. It should allow you to set the permission on the directory.
Note to new users
This just happened to me, also. I use cPanel and it's not allowing me to change the permissions. I guess this is the time to learn how to CHMOD a directory using PHP. :-)
So, note to new users out there....create the directories yourself FIRST!
Jim
RoadUP.com
Road Trips, Travel, & more...
Which folders?
Can someone post which folders to create and what permissions to set for them?
I created /files so I have no probelm accessing it. Drupal created /files/pictures. Image.module creates /files/images and I think also /files/images/temp but that's from memory.
I'm unable to access or change permissions for any folder that was created within Drupal.
I'm assuming that if I had already created all the above directories I wouldn't be having this problem.
Richard
The Unusual Suspect
If you don't have shell access
So far, only the image module has created folders I couldn't change using CPanel. It wouldn't even let me delete them. I did discover, though that it would let me re-name the "image" folder. After doing that, I recreated the "image" folder and the "temp" folder within, setting the proper permissions. Then I could delete the old re-named folder.
i am giving read and write permissions
This happen to me today, as i requested the hosting company to move my account to another server. they did it, but after that i got folder permission problems, i can't even able to delete it through FTP
I deleted the files folder and it's sub-folders(i made a backup of these data yesterday) from the cpanel file manger option.
then i created a files folder and temp, images, pictures, banners under the files folder and i gave read and write permissions to all these folders. And uplodade the backup data and it's working perfectly.
As of now it's working fine, but i don't know what will happen in future.
Sunny
www.gleez.com
Chmod by PHP
I have had the same problem (shared hosting) the suggestions here didn't work but I found another way. I created a php file containing the following to chmod the offending directory.
I then uploaded the php file to the server and ran the script via my browser. It chmodded the directory and I was able to delete it.
Recursive is the key
If you are doing this fix, you want to apply it to all the files within that folder and all folders under that directory. You will want to apply the recursive feature of the ftp utility you're using.
This was the step that fixed it for me.