https://www.percona.com/blog/permissions-issue-when-upgrading-mongodb-with-custom-dbpath-or-logpath/
Permissions Issue When Upgrading MongoDB with Custom dbPath or logPath - Percona
Mar 26, 2026 - The problem in some cases with restored user mongod permissions when you are using custom dbPath or logPath locations when reinstalling the packages, and how...
permissionsissueupgradingmongodb