<div dir="auto">You could trigger a chmod on log rotation.<div dir="auto"><br></div><div dir="auto">Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 21, 2017 06:45, "Kaleb S. KEITHLEY" <<a href="mailto:kkeithle@redhat.com">kkeithle@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/18/2017 09:22 PM, ABHISHEK PALIWAL wrote:<br>
> Any suggestion would be appreciated...<br>
><br>
> On Sep 18, 2017 15:05, "ABHISHEK PALIWAL" <<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a><br>
> <mailto:<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.<wbr>com</a>>> wrote:<br>
><br>
> Any quick suggestion.....?<br>
><br>
> On Mon, Sep 18, 2017 at 1:50 PM, ABHISHEK PALIWAL<br>
> <<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a> <mailto:<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.<wbr>com</a>>> wrote:<br>
><br>
> Hi Team,<br>
><br>
> As you can see permission for the glusterfs logs in<br>
> /var/log/glusterfs is 600.<br>
><br>
> drwxr-xr-x 3 root root 140 Jan 1 00:00 ..<br>
> *-rw------- 1 root root 0 Jan 3 20:21 cmd_history.log*<br>
> drwxr-xr-x 2 root root 40 Jan 3 20:21 bricks<br>
> drwxr-xr-x 3 root root 100 Jan 3 20:21 .<br>
> *-rw------- 1 root root 2102 Jan 3 20:21<br>
> etc-glusterfs-glusterd.vol.<wbr>log*<br>
><br>
> Due to that non-root user is not able to access these logs<br>
> files, could you please let me know how can I change these<br>
> permission. So that non-root user can also access these log files.<br>
><br>
<br>
There is no "quick fix." Gluster creates the log files with 0600 — like<br>
nearly everything else in /var/log.<br>
<br>
The admin can chmod the files, but when the logs rotate the new log<br>
files will be 0600 again.<br>
<br>
You'd have to patch the source and rebuild to get different permission bits.<br>
<br>
You can probably do something with ACLs, but as above, when the logs<br>
rotate the new files won't have the ACLs.<br>
<br>
<br>
<br>
--<br>
<br>
Kaleb<br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></blockquote></div></div>