Changing the default data directory permissions

We have a requirement to change default mongodb data directory and log directory permissions which are set as 0600 to 0750 so that other non-privileged user can read mongodb files after adding that user into mongod group. Can someone please heighlight risks of changing the default permissions.

Thank you!

I would use sudo, for the extra logging it provides, rather than changing the permissions.

I agree but In some secure setups, its not possile to give sudo access .

Hi @Mayank_Siddhu,
You can use something like setfacl for set the permissions read for the log in Linux.
Best Regards

1 Like