mongod.conf has a duplicate key. I could not comment out the duplicate entry because it is read only. the security key is duplicated.
vagrant@m103:~$ mongod -f /etc/mongod.conf
Error parsing YAML config: duplicate key: security.authorization(canonical key: security.authorization)
I cannot do the exercise as written in the lecture “Basic Security 2”. How should I proceed?
Thanks
the file:
vagrant@m103:~$ cat /etc/mongod.conf
mongod.conf
for documentation of all options, see:
http://docs.mongodb.org/manual/reference/configuration-options/
Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
engine:
mmapv1:
wiredTiger:
where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
network interfaces
net:
port: 27017
bindIp: 127.0.0.1
how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#security:
#operationProfiling:
#replication:
#sharding:
Enterprise-Only Options:
#auditLog:
#snmp:
security:
authorization: enabled
security:
authorization: enabled