Results 1 to 5 of 5

Thread: How to set default permissions on Linux?

  1. #1
    CBREGolf is offline Sugar Community Member
    Join Date
    Sep 2009
    Posts
    45

    Arrow How to set default permissions on Linux?

    Some hosting providers don't by default set the file group membership to a group that the apache user belongs to. In this case, you will need to either request your hosting provider to change the group ownership of your Sugar installation files to a group that the Apache web server is a member of or set the file permissions to:

    * 777 for the directories listed above
    * 666 for the config.php file and all files in the directories listed above
    http://www.sugarcrm.com/wiki/index.p...sions_on_Linux

    Can anyone tell me how to set these in SugarCRM config? I see arrays in config.php and utils.php but I'm not sure what values to use. I have all of my permissions set to 777, which is the only way I can fix all of the "undefined" messages I was getting - but new files, folders and repairs seem to use the default permissions and don't work on my shared Linux hosting.

    Any ideas/explanations would be greatly appreciated! I read a few other threads but ended up more confused than before.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to set default permissions on Linux?

    you don't set them in sugarcrm ... these are linux file permissions ... not sugarcrm file permissions.

    go here for a description of file permissions http://www.comptechdoc.org/os/linux/..._ugfilesp.html

  3. #3
    CBREGolf is offline Sugar Community Member
    Join Date
    Sep 2009
    Posts
    45

    Default Re: How to set default permissions on Linux?

    Hmmm. I wonder why they would revert then? I used an FTP client to change all permissions to 777 (recursed to directories and files) but every time I work on a custom module, the permissions for that module's files are too restrictive. I assumed it was because these are files which SugarCRM is writing.

  4. #4
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: How to set default permissions on Linux?

    I think you answered it yourself here: http://www.sugarcrm.com/forums/showt...light=dir_mode

    There are a couple of threads around that suggest a different setting, search for "dir_mode"
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  5. #5
    CBREGolf is offline Sugar Community Member
    Join Date
    Sep 2009
    Posts
    45

    Default Re: How to set default permissions on Linux?

    Thanks. I changed the permissions in config.php and include/utils.php to 511 which seems to have solved several problems. Some files are still being created with different permissions (history files mainly) but it doesn't seem to be causing problems.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. LINUX file/directory permissions
    By dogfuel in forum Installation and Upgrade Help
    Replies: 11
    Last Post: 2009-09-29, 11:11 PM
  2. Replies: 1
    Last Post: 2009-07-13, 08:16 AM
  3. Replies: 4
    Last Post: 2008-12-02, 08:32 PM
  4. Replies: 5
    Last Post: 2008-09-22, 12:11 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
  •