MongoDB
TMA-MONGO-CONFIG-PERMISSIONS
Ensure /etc/mongod.conf is not writable by group or readable by others
MittelStufe 1Automatisiertmongodb
Beschreibung
The configuration file can reference key files and TLS settings; it should be mode 640 or stricter. SKIP when the file does not exist.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
p=$(stat -c %a /etc/mongod.conf 2>/dev/null) || exit 1; if [ $((0$p & 037)) -eq 0 ]; then echo compliant; else echo "mode $p"; fi- Erwartete Ausgabe
compliant
So wird behoben
Behebungsmethode: Shell-Befehl
shell
chmod 640 /etc/mongod.confEigenschaften
- Betriebssysteme
- Beliebig
- Tags
- mongodbdatabasepermissionsfilesystem
- Referenz
- CIS MongoDB Benchmark - File Permissions / Configuration File (verify section number for your release)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target mongodb