Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Where do you add new (non admin) users?

5 replies [Last post]
  • Login or register to post comments
Tue, 06/19/2012 - 21:53
wintrmute
Offline
Joined: 06/19/2012
Groups: None

Hi,
So I'm using Couchbase 1.8, and I have an Administrator user, and I can use Couchbase::Client to connect using those credentials and it's all good..

However I am used to *not* using admin logins in production code -- normally there's a limited user who can only access certain databases. How do I set that up using Couchbase? I can't find any user-administration pages in the web UI, nor do the scripts in /opt/couchbase/bin look promising..

Thanks in advance,
Toby

Top
  • Login or register to post comments
Wed, 06/20/2012 - 10:48
mikew
Offline
Joined: 03/14/2011
Groups:

I don't believe that we have a way to add non-admin users for the web ui/rest interface. The reason at the moment is most likely that even if you could add more users they all would have the same privileges in regards to cluster operations. I will file an improvement for this though, you can follow it here:

http://www.couchbase.com/issues/browse/MB-5619

Top
  • Login or register to post comments
Mon, 07/02/2012 - 21:48
wintrmute
Offline
Joined: 06/19/2012
Groups: None

In that case.. how can I change the Administrator password after installation?

Top
  • Login or register to post comments
Mon, 07/02/2012 - 21:49
wintrmute
Offline
Joined: 06/19/2012
Groups: None

mikew wrote:
I don't believe that we have a way to add non-admin users for the web ui/rest interface. The reason at the moment is most likely that even if you could add more users they all would have the same privileges in regards to cluster operations. I will file an improvement for this though, you can follow it here:

http://www.couchbase.com/issues/browse/MB-5619

OK, so if it's not possible through the web UI.. could you point me to the documentation on how to add new users through the command-line interface?

Thanks

Top
  • Login or register to post comments
Tue, 07/03/2012 - 21:52
wintrmute
Offline
Joined: 06/19/2012
Groups: None

I eventually figured this out:

/opt/couchbase/bin/couchbase-cli cluster-init -u Administrator -p old_password -c 127.0.0.1:8091 --cluster-init-username=Administrator --cluster-init-password=new_password

Top
  • Login or register to post comments
Thu, 07/05/2012 - 13:25
mikew
Offline
Joined: 03/14/2011
Groups:

Great, glad to see you found the answer.

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