Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l74C4-00088c-Bp for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 22:30:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l74C2-0000pr-Gh for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 22:30:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l74C2-0000pk-9i for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 22:30:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l74Bz-0003SZ-3C for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 22:30:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 112MUbf03830673; Tue, 2 Feb 2021 17:30:37 -0500 From: Tom Lane To: Joao Miguel Ferreira cc: pgsql-general Subject: Re: permission denied to create and drop user In-reply-to: References: Comments: In-reply-to Joao Miguel Ferreira message dated "Tue, 02 Feb 2021 21:58:15 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3830671.1612305037.1@sss.pgh.pa.us> Date: Tue, 02 Feb 2021 17:30:37 -0500 Message-ID: <3830672.1612305037@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Joao Miguel Ferreira writes: > I have just installed postgresql on Debian stable (from debian apt > archives). It seems that the postgres user does not have permissions to > DROP/CREATE USER. I was expecting the postgres user to be a superuser but > something seems weird. my postgres user does not have the usual superuser > attributes. That is weird. Maybe just drop the cluster and re-initdb? It might be worth checking the debian postgres package's documentation to see if they're throwing you some kind of curveball. One thing I was about to suggest is that the bootstrap superuser might not be named postgres (it'll be named after whichever OS user ran initdb). However, your "\du" output pretty clearly shows you have no superuser, and that's just odd. regards, tom lane