From 67a2d5a2a62d61991545704ffb2fe01fcb28b254 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Sat, 7 Dec 2024 20:32:01 +0000 Subject: [PATCH] Update mongodb debian --- mongodb-debian.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mongodb-debian.md b/mongodb-debian.md index 0a14470..1fb6022 100644 --- a/mongodb-debian.md +++ b/mongodb-debian.md @@ -34,16 +34,14 @@ security: ### Setting up the Canopy User/DB 1. Restart `mongod` with `sudo systemctl restart mongod` 2. Drop back into `mongosh` with authentication `mongosh -u 'admin'`, entering the password on prompt -3. Switch over to the admin database `use admin` +3. Switch over to the canopy database `use canopy` 4. Create the canopy user: ``` db.createUser( { user: "canopy", pwd: passwordPrompt(), - roles: [ - { role: "dbOwner", db: "canopy" }, - ] + roles: ["readWrite"] } ) ```