Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on VPS Security in the VPS & Dedicated forum
Hey All! I'm wondering... Does it hurt your security if you set permissions to 777 for certain files & folders while being in ROOT? For ...

  1. #1
    JPC Member
    Join Date
    Mar 2007
    Posts
    7

    VPS Security

    Hey All!

    I'm wondering... Does it hurt your security if you set permissions to 777 for certain files & folders while being in ROOT?

    For example, if i install Wordpress on my VPS, it says that i need to chmod certain files & folders to 777. However, need i be logged in as a limited user to do this properly?

    Thanks in advance!

  2. #2
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Yes, permission 777 is insecure, especially in a shared environment. Your vps is a shared environment if you have other users with hosting accounts.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  3. #3
    JPC Member
    Join Date
    Mar 2007
    Posts
    7
    So i understand you correctly that if i only have access to this VPS, and its FTP accounts, it may not be too big a problem?

    I have some domains running on it, and i use FTP to upload files to each of them. However, i do not plan to allow other users to access my VPS using FTP or whatever tool...

  4. #4
    Old Hillbilly Connie's Avatar
    Join Date
    Sep 2001
    Location
    Hills of Missouri
    Posts
    2,648
    I'm not on VPS, but WP works fine at 755 on a shared server. Not sure why it would be any different on a VPS.

    Forum Moderators - Jag Staff

    Spam Whackers Blog - Dedicated to fighting Spam and providing General SEO Tips
    Organize your Kitchen or purchase Kitchen Accessories at Condells
    Ihelpyou Forum - Dedicated to "Best Practices" SEO

  5. #5
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Quote Originally Posted by Connie View Post
    I'm not on VPS, but WP works fine at 755 on a shared server. Not sure why it would be any different on a VPS.
    Because shared servers have phpsuexec installed through cpanel, which allows all php scripts to run under your userid. So no world write permissions required.

    In a stock php/apache setup (or most other control panels), all php scripts execute with the permission of web server user (typically nobody or apache or www). Hence world write permissions required for web server user to upload files/make changes to files there.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  6. #6
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Quote Originally Posted by Evarest View Post
    So i understand you correctly that if i only have access to this VPS, and its FTP accounts, it may not be too big a problem?
    Yes, not a big problem.

    The only other problem you could face is if one account has remotely exploitable web application and the hacker uses it for entry to your vps and uploads malicious files in other account under that 777 permission folder, then it is pretty difficult to track down the source of abuse. So if you keep all your accounts secure by following the security guidlelines: Tips on Web Security you should be fine.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  7. #7
    JPC Member
    Join Date
    Mar 2007
    Posts
    7
    Quote Originally Posted by JPC-Masood View Post
    In a stock php/apache setup (or most other control panels), all php scripts execute with the permission of web server user (typically nobody or apache or www). Hence world write permissions required for web server user to upload files/make changes to files there.
    Thanks again for this! This makes it a bit more clear to me why i need to use this - at first sight - unsafe setting to make WP work on my VPS :-)

    See you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •