# How to change file permission of error.log and access.log

**URL:** <https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126>\
**Category:** NGINX\
**Created:** [September 22, 2012, 8:14pm UTC](https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126 "2012-09-22T20:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 22, 2012, 8:14pm UTC](https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126/1 "2012-09-22T20:14:59Z")

</div>

Is there a way to change the file permission of access.log and  
error.log?  
Currently nginx is creating file in user readable and writable mode.  
I want those files to be readable by group.  
regards  
Vivek G.

---

<div class="post-metadata">

**Author:** ![vivek112020](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/8c91f0/32.png) [@vivek112020](https://www.ruby-forum.com/u/vivek112020)\
**Post date:** [September 24, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126/2 "2012-09-24T12:10:02Z")

</div>

On 22 Sep2012, at 22:13 , Vivek G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a way to change the file permission of access.log and error.log?  
> Currently nginx is creating file in user readable and writable mode.  
> I want those files to be readable by group.

Only with external tools. nginx has no such settings and you could not  
use umask either, because nginx call umaks(0) on start.
