Creating Users in MongoDB | Limited & Admin Accounts | Crash Course

Опубликовано: 23 Март 2026
на канале: TroubleChute Linux
3,147
12

This video shows you everything you need to know about creating basic users in MongoDB, including an Admin account and Read/Write limited accounts for specific databases. It's super simple.

View guide as text & Get commands for easy copy & paste: https://hub.tcno.co/linux/mongodb/users/

MongoDB Server Setup Guide:    • Creating a MongoDB Server on Ubuntu/Debian...  

Database Admin: db.createUser({ usere: "tcno", pwd: "asdf", roles: [{ role: "userAdminAnyDatabase", db: "admin" }] })
Read/Write User: db.createUser({} user: "test", pwd: "asdf", roles: [{ role: "readWrite", db: "testdb" }] })

Timestamps:
0:00 - Intro/Explanation
0:10 - Creating a MongoDB Admin user
1:07 - Creating Read/Write user for specific database
1:54 - Enable Authentication on MongoDB server

#MongoDB #Linux #Guide
-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member:    / @troublechute  
-----------------------------
💸 Support me on Patreon:   / troublechute  
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss the video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips:    / troublechutebasics  
🌐 Website: https://tcno.co
📧 Need voiceovers done? Business query? Contact my business email: TroubleChute (at) tcno.co
-----------------------------
🎨 My Themes & Windows Skins: https://hub.tcno.co/faq/my-windows/
👨‍💻 Software I use: https://hub.tcno.co/faq/my-software/
➡️ My Setup: https://hub.tcno.co/faq/my-hardware/
🖥️ My Current Hardware:
Intel i9-13900k - https://amzn.to/42xQuI1
GIGABYTE Z790 AORUS Master - https://amzn.to/3nHuBHx
G.Skill RipJaws 2x(2x32G) [128GB] - https://amzn.to/42cilxN
Corsair H150i 360mm AIO - https://amzn.to/42cznvP
MSI 3080Ti Gaming X Trio - https://amzn.to/3pdnLdb
Corsair 1000W RM1000i - https://amzn.to/42gOTGY
Corsair MP600 PRO XT 2TB - https://amzn.to/3NSvwzx
🎙️ My Current Mic/Recording Gear:
Shure SM7B - https://amzn.to/3nDGYo1
Audient iD14 - https://amzn.to/3pgf2XK
dbx 286s - https://amzn.to/3VNaq7O
Triton Audio FetHead - https://amzn.to/3pdjIgZ

Everything in this video is my personal opinion and experience and should not be considered professional advice. Always do your own research and ensure what you're doing is safe.