Question

File Permission set to 777

  • Posted March 18, 2014

Hi All,

I install a tracking script on a folder and everything working fine, until I create a tracking link. It says “can’t open file”. I submitted a support ticket and they suggest to change the file permission of the folder (where script installed) to 755 or 777. I try with 755 but it didn’t work, only 777 make it works.

My concern is off course the security. They suggest me to call the hosting :(

I’m running Ubuntu 12.04 x32 on my droplet.

Anyone can shed the light on this?

Thanks tony

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thank you very much Emilio, <br> <br>It works! <br>So I don’t have to install suPHP on my server. <br> <br>Btw, I try to googling “introductory lesson” about www-data but can’t find any. Could you please write a bit on this? So I know what I’m doing when installing any script with file permission like this again. <br> <br>tony

Maybe you can try changing ownership of your files to www-data:www-data?

Sorry mistype on ownership: <br> <br>Change ownership: <br>chown script_folder:root script_folder

I try this: <br> <br>Create new user: <br>sudo adduser admin_script_login root <br> <br>Change ownership: <br>chown chmod 755 script_folder:root script_folder <br> <br>Change permission: <br>chmod 755 script_folder <br> <br>But the script still can’t open file inside the folder. <br> <br>Change permission again to 777, then the script working perfectly. <br> <br>Now my questions is, with this folder configuration (Owner: script_folder and group: root), is it safe to set 777 on this folder? <br> <br>Many thanks <br>

Thanks disturbedrod, <br> <br>I did change to 755 but the script insist to have 777. <br> <br>The developer recommend to install suPHP. Then set the folder to 755.
<br> <br>I try searching here of any tutorial but not available. <br> <br>I’m concern if I install suPHP on running server, it will create havoc on my sites on it. <br> <br>Could you help shed the light on suPHP or point me to the right tutorial? <br> <br>tony

Have you tried changing the ownership of the folder?? <br> <br>chown user:group folder_name <br> <br>and then just set it to 755 <br> <br>chmod 755 folder_name <br> <br>see if that works