SugarClub will be undergoing scheduled maintenance and will be inaccessible beginning on Friday, 10 April 2026 (15:00 UTC | 11am EDT | 1am AEST on 11 April).
This maintenance period will end on 
Monday, 13 April 2026 (12:00 UTC | 8am EDT | 10pm AEST). 

permission issue on sugar log file (644)

Hello Team,

We are getting permission denied error on the default SugarCRM logfile. Whenever it creates a new log file with rw-r--r-- (644) access.

Every time, we require to change 777 permission on the log file. Please let us know how to fix it so that by default it set to 777.

Thanks!

Regards,

Pavan

Parents
  • Check include/SugarLogger/SugarLogger.php - Sugar will create the file using touch , resulting in default 644 permissions.

    @touch($this->full_log_file);

    If you want alter permissions, you may want to extend logger and add a chmod to set 777 permissions.

    For some reason, this doesn't follow the permissions as mentioned in the documentation, it's directly using @touch

Reply
  • Check include/SugarLogger/SugarLogger.php - Sugar will create the file using touch , resulting in default 644 permissions.

    @touch($this->full_log_file);

    If you want alter permissions, you may want to extend logger and add a chmod to set 777 permissions.

    For some reason, this doesn't follow the permissions as mentioned in the documentation, it's directly using @touch

Children
No Data