couchbase-server init script can be executed by non root users
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