Joomla change files and folders chmod to 755 and 644 with ssh commands

I did that operation several times to make sure and here is what happens:

brand new installation of application joomla 1.5. all is ok

i run command through ssh (from inside public_html): chmod -R 755 *

after I do that all the files in folder /public_html/includes/js/jscalendar-1.0/ go with ownership 0000 and become unwritable/undeletable/

can't even chmod them again from ssh... they can't be deleted from cpanel...

I checked the files before operation and they were fine... and that happens only to this folder

I did the same thing 3 times from 3 clean installs and got the same issue 3 times


please advise

Kindly



Attachments 0000.JPG (67.47 KB)

Nathan S.

Posted On: 14 Jul 2008 09:39 AM

greetings

please supply us with the root password and ssh port for your server.

Thanks,


Nathan Stokes

Level 2 Support

www.hostforweb.com

Please send us your comments @ customer.best and cheap hosting company compare

Lagier

Posted On: 14 Jul 2008 10:15 AM




Mike M.

Posted On: 14 Jul 2008 10:39 AM

Greetings,


I am showing the proper permissions when accessing the folders through your cPanel's file manager. Please see the attached screen shot. It may have been an issue with cPanel needing to catch up with the server side changes.



Thanks,


Mike Mortimer

Level 1 Support

www.hostforweb.com

Please send us your comments @ customer.best and cheap hosting company compare

Nathan S.

Posted On: 14 Jul 2008 10:41 AM

greetings

I would not adivise running the reclusive chmod 755 command from puclic_html

what is the reason you are running this command? is it part of the instructions from your script?


drwxr-xr-x 3 reggaegu reggaegu 4096 Mar 22 10:04 ./

drwxr-xr-x 7 reggaegu reggaegu 4096 Mar 22 10:04 ../

-rwxr-xr-x 1 reggaegu reggaegu 4919 Mar 22 10:03 calendar-setup_stripped.js*

-rwxr-xr-x 1 reggaegu reggaegu 34315 Mar 22 10:03 calendar_stripped.js*

-rwxr-xr-x 1 reggaegu reggaegu 5707 Mar 22 10:03 calendar-system.css*

-rwxr-xr-x 1 reggaegu reggaegu 44 Mar 22 10:03 index.html*

drwxr-xr-x 2 reggaegu reggaegu 4096 Mar 22 10:04 lang/

-rwxr-xr-x 1 reggaegu reggaegu 49 Mar 22 10:03 menuarrow2.gif*

-rwxr-xr-x 1 reggaegu reggaegu 68 Mar 22 10:03 menuarrow.gif*


investigating the specified file tree I have noticed that all of the files and directories listed within this directory already have their permissions set to 755.


Thanks,


Nathan Stokes

Level 2 Support

www.hostforweb.com

Please send us your comments @ customer.best and cheap hosting company compare

Lagier

Posted On: 14 Jul 2008 10:49 AM


hi,

I run this series or commands to put all folders 755 then all files 644... because I noticed some items with 777 permissions.... isn't joomla more secure if it can run all folders 755 and files 644?

all permissions are back now and I also can access the folder

1/Please tell me what was the problem and what you did so I can fix it next time that happens

2/please tell me why I shouldn't run chmod 755 under public_html?

thank you



Posted On: 14 Jul 2008 10:58 AM

Greetings,


We didn't do anything to set the folder permissions in your cPanel. It just took a little time for cPanel to catch up to the server side changes. As for the reason recursive permission changes isn't a good idea. Is that some folders need certain permissions sometimes. So long as you know what you are doing and go back through and adjust the files as you said you should be fine.


Thanks,


Mike Mortimer

Level 1 Support

www.hostforweb.com

Please send us your comments @ customer.best and cheap hosting company compare

This website uses Cookies