Mouaici_Med
Mouaici_Med

Reputation: 410

connecting to MongDB Shell in ubuntu 16.04

To strat mongodb shell, if I use mongo db it return permission error concerning the .mongorc.js file. I tried with the command sudo mongo db and it works well. That means I have a problem with permission parameteres but I don't know how to fixe it. Any ideas ?

This is a screenshot of this situationenter image description here

Upvotes: 0

Views: 95

Answers (1)

user9251303
user9251303

Reputation:

To change the file permissions you can run:

chmod 775 /home/maouici/.mongorc.js

7 - read write and exec to owner
7 - read write and exec to anyone in group owner
5 - read and exec to everyone 

Upvotes: 1

Related Questions