Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36977

Initial mongod.log is created using umask vs mode 600

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.6, 4.0.2
    • Fix Version/s: 3.6.10, 4.0.5, 4.1.5
    • Component/s: Logging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Security 2018-10-22, Security 2018-11-05
    • Case:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: