Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 30204 invoked from network); 28 Jun 2010 19:44:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 19:44:14 -0000 Received: (qmail 91692 invoked by uid 500); 28 Jun 2010 19:44:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91658 invoked by uid 500); 28 Jun 2010 19:44:12 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 91650 invoked by uid 99); 28 Jun 2010 19:44:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 19:44:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pawelstawicki@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 19:44:06 +0000 Received: by bwz16 with SMTP id 16so7943373bwz.11 for ; Mon, 28 Jun 2010 12:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=HbvTY8WTf3UR/7Xl/4TT8ui1ydPbVez2D5KldTOH+do=; b=UquvHwlGQe6ZHbYcnx4lnonmFJ780huJ4dMPqos0gG8OpQNfDHFugWVfAIAKr/DtnW NcW+lEBmM62jA+7G5rxL0FyUoLqAQSPe2LFmFVV6r57YLAJesAjR6ZUyiUnsK2I9za1c a/UeCfZ/y4Lhg58PwwKtcUE9DHpNWkxZD4UBY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=ek4T+h3214t1U149SVv9TBmxLXls3Zul6ZZ2b2YLF825+jnQfkzCjDRLEFuo9G0gf/ pwOfOW6LkVVnHC6pmmDNz04sFU5NlqB3eESX+BkBGDwhWZy/S9ZEKHSrGdg7PHrM58GP +MMYwTp+mgV06t7agegsfxv7/nA9ur1ADiUco= Received: by 10.204.6.10 with SMTP id 10mr3919323bkx.191.1277754166109; Mon, 28 Jun 2010 12:42:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.84.92 with HTTP; Mon, 28 Jun 2010 12:42:26 -0700 (PDT) In-Reply-To: References: <39BDEAF8-284C-4C4F-9789-12AF29C78C5C@gmail.com> From: =?UTF-8?Q?Pawe=C5=82_Stawicki?= Date: Mon, 28 Jun 2010 21:42:26 +0200 Message-ID: Subject: Re: Lost access to configuration To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I would also ask where is security object? The one that is in database and can restrict access to it for readers and admins. Can one get it by http and not only by futon? Best regards -- Pawe=C5=82 Stawicki http://pawelstawicki.blogspot.com http://szczecin.jug.pl On Mon, Jun 28, 2010 at 21:38, Pawe=C5=82 Stawicki wrote: > Ok, this works after I set require_valid_user =3D false in > /etc/couchdb/local.ini. But what if I want this option to be turned > on? When it's on, I can't even see "Login" link. Seems like it's also > restricted. I am getting 3 error messages: > > "An error occurred retrieving/updating the server configuration: > Authentication required." > "Server information could not be retrieved: Authentication required." > "An error occurred getting session info: Authentication required." > > And even with require_valid_user =3D false, how can I login outside of > futon? E.g. if I want to operate on database via HTTP by curl? > > I also want to ask where user's password is kept? I created more > admins by clicking "Setup more admins" next to login link in futon. > Let's call created user "sam". Then I went to > http://localhost:5984/_users/org.couchdb.user:sam and there is no > "password_sha1" field, nor "salt" field. > > Best regards > -- > Pawe=C5=82 Stawicki > http://pawelstawicki.blogspot.com > http://szczecin.jug.pl > > > > > On Sun, Jun 27, 2010 at 23:06, J Chris Anderson wrote: >> >> On Jun 27, 2010, at 1:40 PM, Pawe=C5=82 Stawicki wrote: >> >>> Hello, >>> >>> Recently I was playing with authentication settings, and now I lost >>> access to configuration of my server :( I can't login as server admin. >>> My system is ubuntu 10.04, and I use couchdb 0.11. >>> >>> In /etc/couchdb/local.ini I set in [admin] section: >>> joe =3D joe >>> >>> and restarted database. In my browser I go to: >>> http://joe:joe@localhost:5984/_utils/database.html?_config >>> >>> But then I get message "You are not a server admin". >>> >>> How can I log in as server admin? >>> >> >> in the lower right hand corner of http://localhost:5984/_utils/ should b= e a Login link. try the joe credentials there. >> >>> Best regards >>> -- >>> Pawe=C5=82 Stawicki >>> http://pawelstawicki.blogspot.com >>> http://szczecin.jug.pl >> >> >