Results 1 to 3 of 3

Thread: BUG: Invalid default directory and file permissions being set

  1. #1
    vstokesjr is offline Senior Member
    Join Date
    Dec 2009
    Posts
    33

    Default BUG: Invalid default directory and file permissions being set

    I tried to submit a bug report but all I get is You must specify a valid bug. every time I attempt to submit one.
    So, I'll post it here in hopes a Sugar developer notices.

    Sugar CRM Version: 5.5.0 CE
    Platform: Linux/Apache (hosted)
    PHP Version: 5.2.9
    Note: We use SugarCRM CE on a hosted web server (i.e. not on our server or the sugar servers).

    PROBLEM
    Invalid file permissions are being set for directories and files being created by SugarCRM in the include/util.php (having multiple statements).

    EXAMPLE / DETAILS
    Additional details describing a symptom can be found in this forum post here: CACHE folder and file permission problems

    SUGGESTED SOLUTION:
    ALL permission settings should be set and configured in the config.php or the config_override.php. They should NOT be hard-coded deep in the code like they are now.

    Example:

    Code:
    config_override.php:
    
    default_permission_for_directory = 755;
    default_permission_for_file = 644;
    default_permission_user = '';
    default_permission_group = '';
    
    
    include/util.php (having multiple statements):
    
    default_permissions' => array (
    'dir_mode' => $default_permission_for_directory,
    'file_mode' => $default_permission_for_file,
    'chown' => $default_permission_user,
    'chgrp' => $default_permission_group,

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: BUG: Invalid default directory and file permissions being set

    HTML Code:
    default_permission_for_directory = 755;
    default_permission_for_file = 644;
    It is bad permission.
    It should be

    HTML Code:
    default_permission_for_directory = 0755;
    default_permission_for_file = 0644;
    Letrium ltd. - Only high quality service
    http://letrium.com

  3. #3
    vstokesjr is offline Senior Member
    Join Date
    Dec 2009
    Posts
    33

    Default Re: BUG: Invalid default directory and file permissions being set

    Thank you for the corrected permissions.
    IMHO the code should NEVER EVER set directory or file permissions, it should use the default user setting from the operating system. This appears to be a hack to me.

    The following files have been found (so far) that set permissions:

    include/utils.php
    modules/UpgradeWizard/silentUpgrade.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Could not create the temp directory. Check file permissions.
    By Pgr in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2011-12-20, 10:24 PM
  2. LINUX file/directory permissions
    By dogfuel in forum Installation and Upgrade Help
    Replies: 11
    Last Post: 2009-09-29, 11:11 PM
  3. Directory Permissions
    By patrick24601 in forum Help
    Replies: 1
    Last Post: 2006-01-15, 01:22 AM
  4. Directory & File Permissions
    By JustWakinUp in forum Help
    Replies: 1
    Last Post: 2005-09-08, 04:33 PM
  5. Directory permissions
    By ldebernardini in forum Help
    Replies: 0
    Last Post: 2005-07-29, 08:46 AM

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
  •