rueckstiess / mtools

A collection of scripts to set up MongoDB test environments and parse and visualize MongoDB log files.
Apache License 2.0
1.88k stars 400 forks source link

Change permissions on log files after mongod/mongos launch #733

Closed p-mongo closed 5 years ago

p-mongo commented 5 years ago

When my mongod/mongos processes launch, they set permissions on their log files to 0600. This makes logs unreadable by other users which is what I do (mongo daemons are running as their own user, I log in as another user).

Is it within the scope of mlaunch to adjust log file permissions after it launches mongo processes?

p-mongo commented 5 years ago

I was informed of https://docs.mongodb.com/manual/reference/parameters /#param.honorSystemUmask which should accomplish this.