public_html folder is changing permission into 777

Discussion regarding Joomla! 2.5 security issues.

Moderators: Bernard T, mandville, fcoulter, PhilD, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
remas100
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed May 01, 2013 5:33 pm
Contact:

Re: public_html folder is changing permission into 777

Post by remas100 » Wed May 01, 2013 5:43 pm

Krki wrote:Hello

Something in Joomla is causing public_html folder permission to change from 750 into 777.
When this happens Internal Server Error is shown until I change permission back to 750.
My website is hosted on hostgator, VPS (level three) package
After website went live, during last month it happened 10ish times.

I wonder if something similar happened to any of you and how did you tracked the cause of this issue?

So far I created cron task to reset folder back to 750 every 5 minutes so that I dont need to monitor it 24/7 but I would like to sort this out.

Questions:
- is it possible to track what is changing root folder permission?
- is it possible to lock public_html folder into 750 so that nothing within it cannot change public_html folder permission?

Any help or hint is more than welcome :)

Regards

Joomla 1.7.5
Php 5.3.8

Other components installed which are heavily used by users and might cause this:
JomSocial
Ajax ShoutBox
jBolo chat
Simple gallery pro
jReviews
EasyBlog
thumbnailer
JCE editor (not available in frontend)
I am having the same issue on my site, the public_html folder is being changed from 750 to 777 and crashing the site. I have traced this down to having something to do with when a member uploads a photo and only sees a default camera icon in the stream, this is when the error occurs and changes the public_html folder from 750 to 777 causing a 500 error on the site. I hope someone sees these posts and lends a hand to resolve this issue. I am running Joomla 1.7.2 and Jomsocial 2.4.2
Regards

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 14802
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: public_html folder is changing permission into 777

Post by mandville » Wed May 01, 2013 7:55 pm

remas100 wrote:the stream, this is when the error occurs and changes the public_html folder from 750 to 777 causing a 500 error on the site. I hope someone sees these posts and lends a hand to resolve this issue. I am running Joomla 1.7.2 and Jomsocial 2.4.2
Regards
this may be a BUG that has been resolved in more up to date versions of jomsocial than you are using eg they are now on 2.8.3 (atow) but you could always ask on their support forums if this is the case. did you want to update joomla while your at it?
Last edited by mandville on Wed May 01, 2013 11:24 pm, edited 1 time in total.
Reason: edit word BIG to BUG
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

jamalqc
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Feb 18, 2010 6:21 am

Re: public_html folder is changing permission into 777

Post by jamalqc » Wed May 01, 2013 11:14 pm

Thank you, i havé dedicated server and i havé 4 sites without problem. Only One . Thank you

ultralion
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 09, 2013 5:41 pm

Re: public_html folder is changing permission into 777

Post by ultralion » Fri Aug 09, 2013 6:02 pm

jamalqc wrote:Hi Krki,

I tried your file, but it not work....

I create file with one line:

#!/bin/bash chmod 755 /home/myuser/public_html

and i put it in /home/myuser/

and i add a cron job for calling this file reset_public_html_perms.sh like:

/home/myuser/reset_public_html_perms.sh > /dev/null

Thanks for your help
for me not work!
Log say "permission denied" how i can do it?

User avatar
Krki
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Wed Feb 21, 2007 7:57 pm
Location: Zagreb, Croatia

Re: public_html folder is changing permission into 777

Post by Krki » Fri Aug 09, 2013 6:10 pm

Hi
Ask your hosting provider to do it for you.
Although I haven't noticed this happening with latest JomSocial versions.
Could because I also moved from Hostgator VPS to one VPS more closer to major visitors to avoid latency delays. Also new VPS is managed by hosting firm so maybe they did something.
Anyway if this is still happening to you, ask your hosting firm to create cron job which does CHMOD 750 to www and public_html folder every 5 minutes.
Regards

jamalqc
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Feb 18, 2010 6:21 am

Re: public_html folder is changing permission into 777

Post by jamalqc » Fri Aug 09, 2013 11:07 pm

Thanks, on dédecate server , IT issue of js.. Thé cron job work


Locked

Return to “Security in Joomla! 2.5”