Initial mongod.log is created using umask vs mode 600

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.10, 4.0.5, 4.1.5
    • Affects Version/s: 3.6.6, 4.0.2
    • Component/s: Logging
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Security 2018-10-22, Security 2018-11-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When mongod starts it creates the mongod.log. This initial file will be created based on the umask of the process.

      However, log rotation will default to mode 600 unless honorSystemUmask is set. This behavior seems inconsistent.

      This behavior appears to have been introduced with SERVER-22829.

            Assignee:
            Jonathan Reams
            Reporter:
            Arnie Listhaus
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: