[SERVER-41595] logpath folder permission Created: 10/Jun/19  Updated: 11/Jun/19  Resolved: 10/Jun/19

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 4.0.10
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Nagarajan Palaniappan Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hello Experts 

I need some advice on MongoDB Log path permission. Currently, I have 755 permission

on /var/log/mongodb . Our internal auditing will not allow having 755 permission on base folder /var/log..

When i change it to 640, my Mongod process failing with permission error even though my /var/log/MongoDB has 755 privilege.

Again I switch back /var/log to 755 I can able to start my mongod process. is it known behavior.

Kindly advice I need to give a rationale for possible mitigation to get overriding approval

Thanks

Naga

 

 



 Comments   
Comment by Nagarajan Palaniappan [ 11/Jun/19 ]

Thank you, Daniel, for the clarification.

Comment by Danny Hatcher (Inactive) [ 10/Jun/19 ]

Hello,

As you've found, MongoDB requires the ability to execute on the log folder in order to manage the files within. If your company has restrictions on changing the permissions of the /var/log folder, please feel free to change the location where your log files are written to via the --logpath option.

Please note that the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Thanks

Generated at Thu Feb 08 04:58:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.