Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

couchbase-server init script can be executed by non root users

1 reply [Last post]
  • Login or register to post comments
Mon, 07/30/2012 - 06:26
crowdpark
crowdpark's picture
Offline
Joined: 07/25/2012
Groups: None

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!

Top
  • Login or register to post comments
Mon, 07/30/2012 - 22:11
scalabl3
Offline
Joined: 07/18/2012
Groups:

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.
 

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker