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 1lvKu7-0000T9-BA for pgsql-general@arkaria.postgresql.org; Mon, 21 Jun 2021 14:27:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvKu6-00010A-Ai for pgsql-general@arkaria.postgresql.org; Mon, 21 Jun 2021 14:27:58 +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 1lvKu5-000102-UE for pgsql-general@lists.postgresql.org; Mon, 21 Jun 2021 14:27:58 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lvKu3-0001dL-2y for pgsql-general@lists.postgresql.org; Mon, 21 Jun 2021 14:27:56 +0000 Received: by mail-wr1-x430.google.com with SMTP id j1so2696760wrn.9 for ; Mon, 21 Jun 2021 07:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=TsEsqn9BXj7QJdp3f7qQE5QMWi23mLexO3EdxZWmzDo=; b=qeSYJAF/DjdakPflO5sXIljbqsDFMF2bNdyHrANkY1VGSC6xkhDVmiq6M4fMjx1E/K EyHxwMhtOfZVucqw3jREI0X75BGVc6e6ZzuaKaVndbeBUb6piZGskXDNlR3lkUTpYqzB 4weOYZ1+YuowEZZVoj4ejFLV99JCSF3Er1+u4mQw6ddAcUyqpT/1DdWxyJtQoJ61vbzp +/jji6ID9pfozMH9PWW1PW9MtkNumkpoO+YF5oJFr0KlIHde3zgVpWyIE7I0Am9mZKLr YJ0V4f+EIe/q8EMR/gygekgOgCti+Lt8/wtZntV9WC5LhiJfM+F+sNd/g24cOOYkTozV 6SyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=TsEsqn9BXj7QJdp3f7qQE5QMWi23mLexO3EdxZWmzDo=; b=deJktDMNvAF9mROxIJXIJiPXTv2A2M5TzW2PMd91h9w73iKNxW7qTLh/0eaOc7LSD+ JklJuxPW9A9MLKrZ1MkfPpXN3k6lx9LsSEhge442qLEKRbxIfM/ceJpMbJPjA8pYGqRv bAy9ifpdENNJY/WZngBnscPL4mSFwu1w4d+6aXIgl12833yx9P0VZ4eorXIFpfSF31tS ANWTCVJhJjr91WGiciiUQx7bymr5CRFwDXB4g0JVWI3ASSsu/Da2TiiK9U1YfuDvjf5b GV5Ggs30miaeVmwNuaNiNsP8lZoEGQppfABM+GZ1kyyqmUhMiDGOA26UFpbwLKEpfdHx K6iw== X-Gm-Message-State: AOAM532hpp43HdtY6/LzDcaNNZ3rblj/f8B/XfVhwP/ymf5d2rgxv/Zr KkrRK6/zopQp2MQt1JS88bJ80w== X-Google-Smtp-Source: ABdhPJzmeY+luHwwYZFWXstyEib3OC7QfpkKxej8/RjOVoq18kEmhvRhW2dze0CD19Uaz6/7SSf3MQ== X-Received: by 2002:a5d:48ce:: with SMTP id p14mr29308915wrs.170.1624285673473; Mon, 21 Jun 2021 07:27:53 -0700 (PDT) Received: from localhost.localdomain (217-149-168-246.nat.highway.telekom.at. [217.149.168.246]) by smtp.gmail.com with ESMTPSA id l10sm17920138wrv.82.2021.06.21.07.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 07:27:53 -0700 (PDT) Message-ID: <3b2aa71592fc0de2bacda3373542976fd5ba61cf.camel@cybertec.at> Subject: Re: user privileges From: Laurenz Albe To: Atul Kumar , pgsql-general Date: Mon, 21 Jun 2021 16:27:52 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-06-21 at 16:10 +0530, Atul Kumar wrote: > My question can be silly but I need to ask that if a user is created > without login privilege then what is the use of below command why > don't postgres prompt error on it > > CREATE ROLE nolog_user WITH PASSWORD 'pass1'; > > as the user is created with login privileges then what is the use such user ? The role can be the owner of objects, or it can have members that inherit privileges. But setting a password is pointless on a role that cannot login. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com