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 1kqEqF-0003ii-3u for pgsql-admin@arkaria.postgresql.org; Fri, 18 Dec 2020 12:26:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kqEqD-0004HJ-2w for pgsql-admin@arkaria.postgresql.org; Fri, 18 Dec 2020 12:26:37 +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 1kqEqC-0004HB-Of for pgsql-admin@lists.postgresql.org; Fri, 18 Dec 2020 12:26:36 +0000 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kqEqA-00055N-FN for pgsql-admin@postgresql.org; Fri, 18 Dec 2020 12:26:35 +0000 Received: by mail-qk1-x733.google.com with SMTP id 186so1762913qkj.3 for ; Fri, 18 Dec 2020 04:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=kzdFOCfjh12nfb8l2smDG2flGPLpnyBubuRWSZzzTv0=; b=Rhrtp1fg+C3EZd+PzTRj9M63y+dN6JsnLHWx9HXXNH4zkqXiRujkzmbakxl9aayLqU /4NRHap+g5V0zH6YIhyjop2WM415e2fPyD2vMOLe20/FD+YWPh+Sn2+MdX5FKvjLMAI5 yUPJHUMIOjaDUB4L49jQHQyvcbooCWM0EeOEy0nZtiT2hmQWsM52eeRDM/SuUwwBT8Pm c4wDbLnPwa+2FB2fTGMwasvXjK1c3VoRijtMy+CPk9rS45DiQ4lKB9JS4zz1mV+hf8Hk GSyu8L7zW8K3ZCeE5eiaXyR0w5W4M4vaiYhKBsYofAgFEXkDIMuRmMWy3XGYYbLEboUI CGGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=kzdFOCfjh12nfb8l2smDG2flGPLpnyBubuRWSZzzTv0=; b=EwhS/8F/1783GyVWuyDJuwWD+0BqszNxn36aIyZ0SrJaecV7bm0T9wgq6TtyKf0m92 RE5eW6uzFyz+08F6Ny/KcMiT5p+gzLNFVIFDEWRgDgc8/R/vkVIznJRYrnbnpQJ/KrUS hcitUmCLW69PpZCQXV92uUt1YjT+goKb17lw0FTbdBYArp6B5Txutw8jrSuJpxzMmw4q OX59PwBv/Us7ia/Sij7eWHACpj+jvrRRHbXiNW8oRr7lrDD8CtLk3bA5BC46Yt5xl4gP ZaVlGiZaCPwMuPDRnDO6jbgSzklwYgpSPqZ1s9hApR9a5fhA6L9rCqbp/2XtM9X/7718 vz5w== X-Gm-Message-State: AOAM531pw6CcUVIm5HPL834TR/oorlZbbA+b6de+Q0zYydgNIfTvaghQ NzZxSI3eXnLR6X5LIMntacY= X-Google-Smtp-Source: ABdhPJwd8kCvSRG5MAlEcFZReNSqxnnaxJaz/Bkxtyo0HkkmPLEhr+L1xeOjBw0AM1ia6HDV+n/5Sg== X-Received: by 2002:a05:620a:16c9:: with SMTP id a9mr4395464qkn.94.1608294392693; Fri, 18 Dec 2020 04:26:32 -0800 (PST) Received: from [192.168.254.67] (h178.165.133.40.static.ip.windstream.net. [40.133.165.178]) by smtp.gmail.com with ESMTPSA id x20sm5407544qkj.18.2020.12.18.04.26.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Dec 2020 04:26:32 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: John Scalia Mime-Version: 1.0 (1.0) Subject: Re: User granted all access to schema, but can't see tables Date: Fri, 18 Dec 2020 07:26:30 -0500 Message-Id: <41AFAC73-A145-4EAC-B211-70D12AFD7D77@gmail.com> References: <0bfc7514-e4ee-375e-be44-24479e728adc@gmail.com> Cc: pgsql-admin In-Reply-To: <0bfc7514-e4ee-375e-be44-24479e728adc@gmail.com> To: Ron X-Mailer: iPad Mail (18B92) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Does the stansuser have connect privileges to the actual database where the s= chema and tables are? GRANT connect ON DATABASE TO stansuser; Note that since you didn=E2=80=99t tell us what the database name is here, y= ou=E2=80=99ll need to substitute the actual name of it where I indicated . =E2=80=94 Jay Sent from my iPad > On Dec 18, 2020, at 7:07 AM, Ron wrote: >=20 > =EF=BB=BFThis is v12 from RHEL repos. >=20 > As user postgres, I run: >=20 > sides=3D# grant all on SCHEMA strans TO stransuser; > GRANT >=20 > sides=3D# ALTER DEFAULT PRIVILEGES IN SCHEMA strans GRANT all on tables to= stransuser; > ALTER DEFAULT PRIVILEGES >=20 > sides=3D# GRANT USAGE ON SCHEMA strans TO stransuser; > GRANT >=20 > But user stransuser still can=E2=80=99t access tables >=20 > sides=3D> \d > List of relations > Schema | Name | Type | Owner > --------+------------+----------+---------- > strans | foo | table | postgres > strans | foo_id_seq | sequence | postgres > (2 rows) >=20 > sides=3D> select * from strans.foo; > ERROR: permission denied for table foo >=20 > sides=3D> \z strans.foo > Access privileges > Schema | Name | Type | Access privileges | Column privileges | Po= licies > --------+------+-------+---------------------------+-------------------+--= -------- > strans | foo | table | postgres=3DarwdDxt/postgres+| | > | | | READWRITE=3DarwdD/postgres +| | > | | | READONLY=3Dr/postgres | | > (1 row) >=20 > What am I missing? >=20 > --=20 > Angular momentum makes the world go 'round. >=20 >=20