Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9CA30200C3C for ; Mon, 20 Mar 2017 05:40:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90286160B8E; Mon, 20 Mar 2017 04:40:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2409160B7D for ; Mon, 20 Mar 2017 05:40:09 +0100 (CET) Received: (qmail 44640 invoked by uid 500); 20 Mar 2017 04:40:08 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 44630 invoked by uid 99); 20 Mar 2017 04:40:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2017 04:40:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7D1B01A033D for ; Mon, 20 Mar 2017 04:40:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.004 X-Spam-Level: **** X-Spam-Status: No, score=4.004 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.626, HK_RANDOM_FROM=0.999, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tYJlRPrKn4Ag for ; Mon, 20 Mar 2017 04:40:06 +0000 (UTC) Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0BDED5F3BF for ; Mon, 20 Mar 2017 04:40:06 +0000 (UTC) Received: by mail-pg0-f49.google.com with SMTP id t143so5130686pgb.2 for ; Sun, 19 Mar 2017 21:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tYNkU4+16OYQv03jzn00KqrM4i36mm9LcAObP4mVsjk=; b=QbP5qc6hkyuxbP70q5j8zcSadSZX3mc/iy0r59/wc3PqbObY44Q6HxwGZ8z0KKbR/H zTqnU8F1bFJ+TLsJM/HvD+GRG9GEbuS8tSH90evMklZvigKoVbxt0qcgEnra/X7CLTBn I5dTL4NrEsFStGVics7HwgCvhW6FNmaCW2ChpfaHsaQ7avCz+31F3BoMeC4vWA5hL8X+ J+s3X3Nh/3hTJmIoHl4fPXLfbBf5lUnryu61jPdu61daFJ2N0myJN42XBtLWomlgapds Fxtd4UTdJ5TJBblGUmbnSARHa8EK+rSKFpiDSGVOQrvq1qZ3I1L+5eupWwDjmJfe38hk KIeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tYNkU4+16OYQv03jzn00KqrM4i36mm9LcAObP4mVsjk=; b=cHFAKIBDJE9Pd9z8ICQGzOx7dGFZuCECvZ7N+wSRWjCF8WbtJbFekWasxhRim4KrsQ 0dFs9cTX/q6CfphIRrwZHgV47KofmT6WiPHluN12B1Wtqdr9rhtBxw3OenrUBpClX9lM HaQDi0jN5YnU9k/NY64B6CvLXFbtnPfrPnBcdTrg7bXKgThjPP5RgYh5be4mDAkF6p3M Q7EH2TqSFrmaYJoS7O6vACpdbXVQcDu5tu14WFKx9kNF3Rau1pvv1hjvQMHh3qTbD/a/ YqUd8qDrRCdc1A4jcloiptd0MYoqWsAF4dlrNK1ATBHclYKSdEeUOEE+8kkwDW7Vhktu gNvg== X-Gm-Message-State: AFeK/H1BNFlG6PmY0rGv8FkdTz5sdimooBt2roS5Auyz3iiJYiJhiLTxLmhDTc3I1IwNPkZVHFCRYqmg5Uwdtw== X-Received: by 10.98.192.25 with SMTP id x25mr31337176pff.158.1489984805037; Sun, 19 Mar 2017 21:40:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.181.109 with HTTP; Sun, 19 Mar 2017 21:40:04 -0700 (PDT) In-Reply-To: <1A9B672E-9540-49B4-B010-402B3F63B607@core43.com> References: <1A9B672E-9540-49B4-B010-402B3F63B607@core43.com> From: Long Quanzheng Date: Sun, 19 Mar 2017 21:40:04 -0700 Message-ID: Subject: Re: Error of "You have to be logged in and not anonymous to perform this request" To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=94eb2c1437f8066c73054b221f4b archived-at: Mon, 20 Mar 2017 04:40:10 -0000 --94eb2c1437f8066c73054b221f4b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks. Good to know that. But that's a little confusing for first time using Cassandra. 2017-03-19 19:16 GMT-07:00 Max Campos : > These commands don=E2=80=99t really mean anything unless you=E2=80=99re u= sing > authentication. If you want to enable roles / authentication / etc, then > follow the instructions in the manual: > > http://cassandra.apache.org/doc/latest/operating/security. > html#authentication > > =E2=80=A6 or if you don=E2=80=99t want to use user authentication, then I= wouldn=E2=80=99t worry > about creating users / messing around with roles for the authentication > system you don=E2=80=99t want to use. :-) > > - Max > > On Mar 19, 2017, at 6:56 pm, Long Quanzheng wrote: > > Hi > I can't do any actions even with the superuser "cassandra". > > cassandra@cqlsh> list roles; > Unauthorized: Error from server: code=3D2100 [Unauthorized] message=3D"Yo= u > have to be logged in and not anonymous to perform this request" > > cassandra@cqlsh> CREATE USER dba WITH PASSWORD 'bacon' SUPERUSER; > Unauthorized: Error from server: code=3D2100 [Unauthorized] message=3D"On= ly > superusers can create a role with superuser status" > > cassandra.yaml is configed as: > > authenticator: AllowAllAuthenticator > > > > --94eb2c1437f8066c73054b221f4b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks.
Good to know that. But that's a little con= fusing for first time using Cassandra.

2017-03-19 19:16 GMT-07:00 Max Campos <mc_cassandra@core43.com>:

H= i=C2=A0
I can't do any actions even = with the superuser "cassandra".

cassandra@cqlsh> list rol= es;
Unauthorized: Error from server: code=3D2100 [Unauthorized] m= essage=3D"You have to be logged in and not anonymous to perform this r= equest"

cassandra@cqlsh> CREATE USER dba W= ITH PASSWORD 'bacon' SUPERUSER;
Unauthorized: Error from = server: code=3D2100 [Unauthorized] message=3D"Only superusers can crea= te a role with superuser status"

cassandra.yaml is configed as:<= /div>

= authenticator: AllowAllAuthenticator


--94eb2c1437f8066c73054b221f4b--