[DOCS-1758] Comment on: "manual/tutorial/install-mongodb-enterprise.txt" Created: 29/Jul/13  Updated: 03/Nov/17  Resolved: 29/Jul/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Alexander Komyagin Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13
Screen Resolution: 1440 x 900
repo: docs
source: tutorial/install-mongodb-enterprise


Issue Links:
Related
Participants:
Days since reply: 10 years, 29 weeks, 1 day ago

 Description   

For testing purposes, you can start a mongod directly in the terminal without creating a control script:

mongod --config /etc/mongod.conf

Since mongod usually runs under the mongodb user account, it might be a good idea to add the following there in order to avoid confusion with the privileges:

...
Or, if mongod runs under the mongodb user account:

sudo -u mongodb mongod --config /etc/mongod.conf



 Comments   
Comment by Sam Kleinman (Inactive) [ 30/Jul/13 ]

The distribution of the mongodb binaries in a tgz (tar.gz) archive does not create user accounts, only the .deb and .rpm packages create user accounts on installation. (I confirmed that they create user accounts this morning.)

The documentation will, in the near future, address using these operating system packages. However, at least for the moment, managing user accounts and process management is outside the scope of the tutorials that address the tgz archive, as there's a great deal of variability depending on user environment, configuration, and application needs.

Sorry for any confusion.

Cheers,
sam

Comment by Ton Yeung [ 30/Jul/13 ]

It doesn't, I checked the accounts, and the mongodb account had to be manually added by me, at least if I install the enterprise version. The enterprise version, at this time, can only be installed by downloading the tarball manually, so unless they change it, it does not add the accounts.

Here is the account list, mongodb had to be manually added:

backup      x  34     34     backup                              /var/backups        /bin/sh
bin         x  2      2      bin                                 /bin                /bin/sh
daemon      x  1      1      daemon                              /usr/sbin           /bin/sh
games       x  5      60     games                               /usr/games          /bin/sh
gnats       x  41     41     Gnats Bug-Reporting System (admin)  /var/lib/gnats      /bin/sh
irc         x  39     39     ircd                                /var/run/ircd       /bin/sh
landscape   x  102    104                                        /var/lib/landscape  /bin/false
libuuid     x  100    101                                        /var/lib/libuuid    /bin/sh
list        x  38     38     Mailing List Manager                /var/list           /bin/sh
lp          x  7      7      lp                                  /var/spool/lpd      /bin/sh
mail        x  8      8      mail                                /var/mail           /bin/sh
man         x  6      12     man                                 /var/cache/man      /bin/sh
messagebus  x  103    106                                        /var/run/dbus       /bin/false
mongodb     x  1001   1001   mongodb,,,                          /home/mongodb       /bin/bash
news        x  9      9      news                                /var/spool/news     /bin/sh
nobody      x  65534  65534  nobody                              /nonexistent        /bin/sh
proxy       x  13     13     proxy                               /bin                /bin/sh
root        x  0      0      root                                /root               /bin/bash
snmp        x  105    113                                        /var/lib/snmp       /bin/false
sshd        x  106    65534                                      /var/run/sshd       /usr/sbin/nologin
sync        x  4      65534  sync                                /bin                /bin/sync
syslog      x  101    103                                        /home/syslog        /bin/false
sys         x  3      3      sys                                 /dev                /bin/sh
ton         x  1000   1000   Ton Yeung,,,                        /home/ton           /bin/bash
uucp        x  10     10     uucp                                /var/spool/uucp     /bin/sh
whoopsie    x  104    107                                        /nonexistent        /bin/false
www-data    x  33     33     www-data                            /var/www            /bin/sh

Comment by Sam Kleinman (Inactive) [ 30/Jul/13 ]

The MongoDB Enterprise download page includes links to packages, which may create user accounts upon installation.

Thanks for your attention!

Comment by Ton Yeung [ 30/Jul/13 ]

What packages are you talking about?

Also, if instructions for how to create a user is needed, they can be found here: http://www.howtogeek.com/howto/ubuntu/add-a-user-on-ubuntu-server/

A short version would be:

To add a user type in this command:
sudo adduser mongodb
 
Then type in the UNIX password, press enter
Confirm the password by typing it again, press enter.
To accept defaults, press enter until it ask if the information is correct, type "y", enter.
 

Comment by auto [ 29/Jul/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1758: clarify possible permissions issue.
Branch: master
https://github.com/mongodb/docs/commit/6dcacb58e5f3f199ce8a7a903bbbf4d5ca5ee8c9

Comment by auto [ 29/Jul/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1758: clarify possible permissions issue.
Branch: v2.2
https://github.com/mongodb/docs/commit/9b9c59f733bc3f4e60db22535a12c5652184563d

Comment by Sam Kleinman (Inactive) [ 29/Jul/13 ]

changing this direction assumes you've installed from the packages, which the current tutorial doesn't cover, or created your own mongodb user with the right permissions, which the current tutorial also does not address.

I've added a note saying that its important to make sure that you run the command with a user that has read/write permissions to the dbpath.

Generated at Thu Feb 08 07:41:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.