Results 1 to 2 of 2

Thread: /cache/images is filling w. files owned by root

  1. #1
    vspace is offline Junior Member
    Join Date
    Feb 2006
    Posts
    2

    Default /cache/images is filling w. files owned by root

    I have three sugar installations that are virtually identical. Today I began updating each one to 4.5.1b. When I went to update one of them, I received an error that the permissions on some of the files in the /cache/images folder were wrong. It turns out when the scheduler runs to pull in new messages, that it is loading image files into that folder and giving them root permissions.

    I checked the cron job, and it runs under root, and the folder /cache and /cache/images are both owned by and members of apache user and group.

    My other two installations do not have this problem, and I cannot figure out why any file is appearing with root permissions instead of apache permissions.

    Any thoughts on what is happening to my installation? Have I been hacked? or is there another issue with the scheduler and the polling of email with the cron job? Any help would be appreciated.

    FYI: Installed on Fedora Core 5 running apache, all emails come in via POP3

  2. #2
    eupaccrm is offline Member
    Join Date
    Dec 2008
    Posts
    10

    Default Re: /cache/images is filling w. files owned by root

    Hi there,

    I've had the exact same problem where sugar created files in the /cache folder with root ownership, and then getting permission issues trying to access them.

    I also had the crontab running under root, but have now deleted it and added a crontab for the apache user (the Sugar Admin/Install manual does instruct you to add a crontab under apache user).

    I have also changed the config file for default file permissions on Linux as below:

    'default_permissions' => array (
    'dir_mode' => 02770,
    'file_mode' => 0660,
    'chown' => 'apache',
    'chgrp' => 'apache',

    Actually the dir_mode and file_mode were already set to the decimal equivalents 1528 and 432 (not sure whether it's correct to put decimal format or octal), so I've left that as decimal and just changed chown and chgrp.

    I'll see how it goes and report if I still get the cache/permission issues.

    Anyone else with the same or similar problems?
    Last edited by eupaccrm; 2009-04-24 at 02:33 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Manual merge reported for unmodified files in patches 4.5.0E/F
    By nolan_cafferky in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2006-11-08, 05:06 PM
  2. Replies: 1
    Last Post: 2006-10-14, 06:02 PM
  3. Directory size = 1.5MB : weird problem
    By mgaudette in forum Help
    Replies: 0
    Last Post: 2006-10-04, 03:11 PM
  4. "Include" directory invisible ?
    By ymartin in forum General Discussion
    Replies: 11
    Last Post: 2006-02-13, 05:44 PM
  5. View Calendars in iCal
    By unteins in forum General Discussion
    Replies: 8
    Last Post: 2005-07-06, 02:12 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
  •