Michael
What the app does is, create a local file 'mongo-shell.js' and then execute this file using 'mongosh mongo-shell.js' (something like this)
On Linux, there must be some more file permissions needed to do this.
A
Andy Gee
Michael: You'll need to
chmod +x /path/to/mongosh mongo-shell.js
to allow it to execute. Also a good idea to ensure the user that will execute the file will also be the user that creates the file
Michael
Andy Gee: Hi Andy. The app (MajorM) will need to execute this permissions command you mean, right? To make sure the app has permission to execute the command.
Just to make sure you mean that instead of, the user will need to execute this permission command?
A
Andy Gee
Michael: Hi Michael, ideally the app that calls the file, also creates the file and sets any permissions it needs. So yes it shouldn't be something the user needs to do.