How to add a user in Mac OS using Terminal

Here I will show you the steps to add a user in the Mac OS using Terminal / Command Prompt in simple steps. 1) Open up the terminal window. 2) Create a user by using command: dscl . create /Users/hadoop If you get error like: <main> attribute status: eDSPermissionError <dscl_cmd> DS Error: -14120 (eDSPermissionError) Just […]

How to create user in MongoDB

Below are the steps by which a user can be created for a database in MongoDB 1) switch to your database on which the user needs to be created for granting access > use demodb 2) Create user on this database > db.createUser({user:’user1′, pwd: ‘pwd1′, roles:[{role:’readWrite’, db:’demodb’}]}) this will add a user for demodb in […]