"illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating" answered properly. Developers are finding an appropriate answer about illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating.
illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating
From the question description it appears you are running mongod from your own account (user: makan).
Your invocation of mongod without specifying a configuration file or --dbpath would require this user to have read/write permissions for the default dbpath directory (/data/db). Since /data/db is only writable by user mongodb, a permission error is expected when mongod tries to write a file running with the permissions of makan:
All those coders who are working on the Whatever based application and are stuck on illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating can get a collection of related answers to their query. Programmers need to enter their query on illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating". Visit this developer's friendly online web community, CodeProZone, and get your queries like illegaloperation: attempted to create a lock file on a read-only directory: /data/db, terminating resolved professionally and stay updated to the latest Whatever updates.