How To Use Terminal On Mac - Beginner's Guide to Manage Users.
I use these commands to create an admin user on the Mac devices. As an MSP administrator, I prefer to create a second admin account for engineers using Mac so they can install apps they need for work.
Make sure you watch the whole video as I share some useful tips on the way.
If you guys have any more questions ask in the comments, I'll try to answer all of them.
Check the user with attributes
dscacheutil -q user | grep -A 3 -B 2 -e uid:\ 5'[0-9][0-9]'
Check the Admin accounts
dscacheutil -q group -a name admin
Create a new user and add it to the Admin group if you remove -admin at the end you will create a standard user
sudo sysadminctl -addUser primc -password mN8YXr34st6K -fullName "primc" -home /Users/primc -admin
Change the password
sudo passwd primc
Remove user from admin group
sudo dseditgroup -o edit -t user -d primc admin
Delete usersudo sysadminctl -adminUser primc -adminPassword -deleteUser primc# Another command to list the users on Mac
dscl . -list /Users | grep -v '^_' | grep -v '^root' | grep -v '^daemon'
If you are entry-level in IT or you want to start a career in IT. Consider subscribing to my channel.
Audio: PreSonus AudioBox Studio - https://amzn.to/3ERQMjq
Photos: Nikon D5300 Digital SLR Camera - https://amzn.to/3RCaebh
SanDisk Ultra 512 GB microSDXC Memory Cardhttps://amzn.to/3PVLRTq
Mini Ball Head Tripod Ballhead Mount - https://amzn.to/3LFpxfF
Tripod Phone Mount Holder - https://amzn.to/3PXc3hU
USB C Hub - https://amzn.to/45drWF5
12" Selfie Ring Light - https://amzn.to/3LIqgfY
Music I Use: Bensound.com/royalty-free-music
License code: XCKJ6KKGRQWPDOXN
📝 DISCLAIMER:
Some of the links above are affiliate links, where I earn a small commission if you purchase an item. This comes at NO additional cost to you but helps support this channel and enables me to make free content. Thanks for watching! 🎉
Cheers
Subscribers: 10