Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338039

Summary: dev-db/mongodb starts as root
Product: Gentoo Linux Reporter: Roland "Robelix" Obermayer <masta>
Component: [OLD] ServerAssignee: Lance Albertson (RETIRED) <ramereth>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Roland "Robelix" Obermayer 2010-09-19 14:00:42 UTC
Mongodb is started as root


in the init-script

        start-stop-daemon --background --start --user ${MONGODB_USER} --pidfile \

should be:

        start-stop-daemon --background --start --chuid ${MONGODB_USER} --pidfile \


Reproducible: Always

Steps to Reproduce:
Comment 1 Johan Bergström 2010-09-30 14:47:09 UTC
When changing this we probably need to help users (or at least make them aware) change ownership of the data files as well?
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2010-10-14 08:30:46 UTC
$ start-stop-daemon --help|grep chuid
  -c, --chuid <arg>                 deprecated, use --user
Comment 3 Roland "Robelix" Obermayer 2010-10-15 18:12:28 UTC
not with current stable baselayout:

# start-stop-daemon --help|grep chuid
  -c|--chuid <name|uid[:group|gid]>
# start-stop-daemon --version
start-stop-daemon 1.13.11+gentoo
                                                                          
Comment 4 Ultrabug gentoo-dev 2011-04-13 15:14:30 UTC
Hi Roland,

We fixed the init script in tree, please give it a try ! Thanks for reporting this bug.

Regards

+*mongodb-1.8.1 (13 Apr 2011)
+*mongodb-1.6.5 (13 Apr 2011)
+
+  13 Apr 2011; Ultrabug <ultrabug@gentoo.org> -mongodb-1.2.4.ebuild,
+  -files/mongodb-1.2-modify-post-strip.patch,
+  -files/mongodb-1.2-modify-testing.patch, -mongodb-1.4.4.ebuild,
+  -files/mongodb-1.4-modify-post-strip.patch,
+  -files/mongodb-1.4-modify-testing.patch, -mongodb-1.5.5.ebuild,
+  -mongodb-1.6.0.ebuild, -files/mongodb-1.6.0-fix-scons.patch,
+  +mongodb-1.6.5.ebuild, +files/mongodb-1.6-fix-scons.patch,
+  +mongodb-1.8.1.ebuild, +files/mongodb-1.8-fix-scons.patch,
+  +files/mongos.confd, +files/mongos.initd, files/mongodb.confd,
+  files/mongodb.initd:
+  Mongodb rework/bump. Fix bugs #329167, #334081, #337085, #337593, #337973,
+  #338039, #340032, #356731. Many thanks to Johan Bergström for his help and
+  testing. Drop old versions.
+