<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>permission issue on sugar log file (644)</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4325/permission-issue-on-sugar-log-file-644</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: permission issue on sugar log file (644)</title><link>https://sugarclub.sugarcrm.com/thread/21767?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 15:38:16 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5fed3248-5362-4905-bca1-d73f8f812542</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;For what it&amp;#39;s worth, 664 should be good enough for the log file, 777 is a bit extreme :)&lt;br /&gt;&lt;br /&gt;My permissions panacea is to run these from sugar root (and sometimes other directories), they respectively: set ownership and group on every file and directory, from where you are down, to apache; set all directories to 775, and set all files to 664.&lt;/p&gt;
&lt;p&gt;I run these after every upgrade or any time I suspect permission issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sudo chown -R  apache:apache *

sudo find . -type d -exec chmod 775 {} \;

sudo find . -type f -exec chmod 664 {} \;&lt;/pre&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: permission issue on sugar log file (644)</title><link>https://sugarclub.sugarcrm.com/thread/21747?ContentTypeID=1</link><pubDate>Sun, 13 Dec 2020 19:46:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ece814b9-a377-4cea-86d1-504e1515fb1a</guid><dc:creator>Neeraja P</dc:creator><description>&lt;p&gt;Check&amp;nbsp;&lt;em&gt;include/SugarLogger/SugarLogger.php&lt;/em&gt; - Sugar will create the file using&amp;nbsp;&lt;em&gt;touch&lt;/em&gt;&amp;nbsp;, resulting in default 644 permissions.&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;touch&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;$this&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;full_log_file&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If you want&amp;nbsp;alter permissions, you may want to extend logger and add a chmod to set 777 permissions.&lt;/p&gt;
&lt;p&gt;For some reason, this doesn&amp;#39;t follow the permissions as mentioned in the documentation, it&amp;#39;s directly using @touch&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: permission issue on sugar log file (644)</title><link>https://sugarclub.sugarcrm.com/thread/21744?ContentTypeID=1</link><pubDate>Sun, 13 Dec 2020 16:29:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f2710199-7170-4524-9e93-9269208bc75b</guid><dc:creator>Ramya Katram</dc:creator><description>&lt;p&gt;Hi Pavan,&lt;/p&gt;
&lt;p&gt;Please go through these &lt;a href="/dev-club/b/dev-blog/posts/tips-for-managing-sugar-file-permissions"&gt;Tips for managing Sugar Permissions&lt;/a&gt;&amp;nbsp;and &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Versions/10.2/Pro/Administration_Guide/Advanced_Configuration_Options/index.html#Configuring_File_Permissions"&gt;Configuring File Permissions&lt;/a&gt;&amp;nbsp;to get some idea.&lt;/p&gt;
&lt;p&gt;Hope this information will be helpful.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Poojitha.K&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>