From 4a620fcbb66ed7e1a8bc6c421e29bb3e750d703b Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Sat, 7 Dec 2024 19:48:01 +0000 Subject: [PATCH] Update mongodb debian --- mongodb-debian.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mongodb-debian.md b/mongodb-debian.md index 314aef3..205a808 100644 --- a/mongodb-debian.md +++ b/mongodb-debian.md @@ -10,4 +10,6 @@ 4. Tell apt to update repo's and install mongosh other preq-reqs `sudo apt update && sudo apt install mongodb-org` ### Hardening MongoDB -1. Start mongod without authentication `sudo systemctl start mongod` +1. Start mongod without authentication and drop into a shell `sudo systemctl start mongod & mongosh` +2. Switch over to the admin database `use admin` +3. Create the administrative user: \ No newline at end of file