couchbase-server init script can be executed by non root users
Mon, 07/30/2012 - 06:26
Hello,
today one of our developers just entered "/etc/init.d/couchbase-server stop" from an unpriviliged / non-root account on a Ubuntu Linux machine.
Unfortunately the service terminates.
Can you make sure that non-root users can not stop the service? ;-)
Something like this:
id=`id -u 2> /dev/null` if [ "$id" != "0" ]; then echo "ERROR: must run $0 as root" exit 1 fi
Thanks!
Ahh great tip, I will pass that along! :)
Are you the CrowdPark in Germany that makes social betting games Bet Tycoon and Ante Up? If you are using Couchbase, I'd love to learn more!
@scalabl3
Technical Evangelist
Couchbase Inc.