Update mongodb debian
parent
9dc76afd77
commit
67a2d5a2a6
|
|
@ -34,16 +34,14 @@ security:
|
||||||
### Setting up the Canopy User/DB
|
### Setting up the Canopy User/DB
|
||||||
1. Restart `mongod` with `sudo systemctl restart mongod`
|
1. Restart `mongod` with `sudo systemctl restart mongod`
|
||||||
2. Drop back into `mongosh` with authentication `mongosh -u 'admin'`, entering the password on prompt
|
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:
|
4. Create the canopy user:
|
||||||
```
|
```
|
||||||
db.createUser(
|
db.createUser(
|
||||||
{
|
{
|
||||||
user: "canopy",
|
user: "canopy",
|
||||||
pwd: passwordPrompt(),
|
pwd: passwordPrompt(),
|
||||||
roles: [
|
roles: ["readWrite"]
|
||||||
{ role: "dbOwner", db: "canopy" },
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue