fix structure

This commit is contained in:
Jannis 2025-02-19 19:54:56 +01:00
parent 3cc4ae5699
commit a7e1a41de4
31 changed files with 102 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

6
KN05/readme.md Normal file
View file

@ -0,0 +1,6 @@
# A: Rechte und Rollen
![alt text](<Screenshot 2025-02-18 at 15.30.49.png>)

22
KN05/user_creation.js Normal file
View file

@ -0,0 +1,22 @@
use gaming
db.createUser({
user: "readOnlyUser",
pwd: "readOnly123",
roles: [
{ role: "read", db: "gaming" }
]
})
use admin
db.createUser({
user: "readWriteUser",
pwd: "readWrite123",
roles: [
{ role: "readWrite", db: "gaming" }
]
})
use admin
db.system.users.find({}, {user: 1, db: 1, roles: 1})