Explicitly chmod extension conf dir when it already exists

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2025-02-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      os.makedirs(..., mode=0o700, exist_ok=True) only applies the mode when it actually creates the directory; if the directory already exists (e.g. left over from a prior run with a permissive umask) the mode is silently ignored, leaving it group/other-writable and causing verifyConfigPathPermissions() to reject it at mongod startup.

            Assignee:
            Finley Lau
            Reporter:
            Finley Lau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: