Results 1 to 2 of 2

Thread: What are the correct permissions?

  1. #1
    yellowsc2 is offline Junior Member
    Join Date
    Jan 2005
    Posts
    3

    Default What are the correct permissions?

    Hello,

    When I installed SugarCRM I changed all permissions to 777 to install correctly. Now I have changed all directories to 755 and all files to 644 however I am getting errors logging in. When all permissions are set to 755 for directories and files, it works great. What should I be setting permissions to so it will be secure and work?

    Thanks for your time and keep up the great work!

    Regards,
    Marshall

  2. #2
    skewty is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    11

    Default Re: What are the correct permissions?

    The correct permissions depend the the owner and group of the files and directories.
    When apache runs on a linux machine it runs using a certain user account.
    That user account can belong to one or more groups.
    That user account might be: apache, web, nobody. It depends on your setup.

    If apache is running as (user = apache and groups = nogroup only) and
    the files are set to (user = nobody and group = web) and the permissions are
    755 (that is rwx for user; rx for group, rx for everyone)
    apache basically gets rx for everyone because it is owned by a different user and apache doesn't belong to the group web.

    In Binary
    -------------
    7 = 111 rwx
    6 = 110 rw
    5 = 101 r x
    4 = 100 r
    3 = 011 wx
    2 = 010 w
    1 = 001 x
    0 = 000

    the first 1 is for read access
    the middle 1 is for write access
    the last 1 is for execute access

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •