0

To repair mongodb running on arch linux arm, the doc says that the specific command must be run with the same user as the one running the service, to avoid permission issues later on.

The dbpath folder belongs to the mongodb user, so I guess it's the user running the service. How can I find the password to su it to issue the repair command? Or is there a better approach?

3

Service accounts are typically locked, i.e. there is no password that you can login with. If you are the administrator of the system, then become root by way of su or sudo, and as root issue su mongodb.

  • 3
    Or just sudo -s -u mongodb directly. – JdeBP Oct 13 '16 at 22:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.