Results 1 to 4 of 4

Thread: problem with default permissions

  1. #1
    sons is offline Member
    Join Date
    Jan 2011
    Posts
    14

    Default problem with default permissions

    Hello,

    I have problem to set default permissions. Default was
    'default_permissions' =>
    array (
    'dir_mode' => 1528,
    'file_mode' => 436,
    'user' => '',
    'group' => '',
    I tried to change it to 1533 and 493, 02775 and 0775, 2775 and 775 ... Also changed user and group. Whatever I change files in cache/upload are created as: owner - nobody, group nogroup and permissions 664.

    Owner of crm folder is nobody, permissions 777

    At this link is my basic problem.

    SugarCRM 5.1.0c
    Ubuntu 10.10
    XAMPP 1.7.4

    Thanks!

  2. #2
    arosenberg is offline Junior Member
    Join Date
    May 2011
    Posts
    3

    Default Re: problem with default permissions

    I am having a similar problem.

    The files that Sugar writes are not accessible and I think it is because of these default permissions.

    Please let me know what you discover.

  3. #3
    kylehoward is offline Junior Member
    Join Date
    May 2011
    Location
    Kansas
    Posts
    1

    Default Re: problem with default permissions

    Are the folder permissions set correctly for the directory housing the files?

  4. #4
    arosenberg is offline Junior Member
    Join Date
    May 2011
    Posts
    3

    Default Re: problem with default permissions

    Yes. Thats not the issue. It only applies to the files that Sugar uploads or creates itself (for example the import reports.) I can change the permissions manually and open the files. Sugar is creating them incorrectly. I found another Forum Thread and changed them to this:

    'dir_mode' => 02775,
    'file_mode' => 0775,

    This change worked! However, are they the right settings?

    Also, located this article: http://www.sugarcrm.com/kb/imp/insta...ions-on-linux/

    Trying to determine with my host (Siteground) how they setup the server. This was there response to my questions (based on the article above.)

    (1) Is the web server is running under the “apache” user?

    The web server is running under the system user "nobody". However, all your scripts are being executed in "chroot-ed" environment under your cPanel user. The correct permissions for this hosting environment are 644 for the files and 755 for the folders.

    (2) Have you set all the files to belong to the “apache” group, the same group as the "apache" user belongs?

    The apache system user "nobody" does not need to to own your files, because the execution/read/write operations are being performed with your cPanel user - pixprocr.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. new file default permissions
    By phillibe in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2010-03-14, 09:00 PM
  2. BUG: Invalid default directory and file permissions being set
    By vstokesjr in forum Feature Requests
    Replies: 2
    Last Post: 2010-01-17, 02:27 PM
  3. How to set default permissions on Linux?
    By CBREGolf in forum Help
    Replies: 4
    Last Post: 2009-09-17, 05:14 PM
  4. Replies: 4
    Last Post: 2008-12-02, 08:32 PM
  5. Assign Default Permissions
    By Jvickers in forum Feature Requests
    Replies: 3
    Last Post: 2007-09-26, 01:39 PM

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
  •