Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHp7e-0006u6-HE for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 11:57:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHp7b-0006VM-O7 for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 11:57:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHp7b-0006VF-Ff for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 11:57:15 +0000 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2] helo=mx2.mailbox.org) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gHp7Y-0007Po-3U for pgsql-general@postgresql.org; Wed, 31 Oct 2018 11:57:14 +0000 Received: from smtp1.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 48F17A1337; Wed, 31 Oct 2018 12:57:07 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id v76FacKIiD7L; Wed, 31 Oct 2018 12:57:06 +0100 (CET) Message-ID: <149dcb2953e0d39a5618c81e784f00f6edc48783.camel@cybertec.at> Subject: Re: can I use privileged user operate pg, and how? From: Laurenz Albe To: =?UTF-8?Q?=E6=9E=AB?= , pgsql-general Date: Wed, 31 Oct 2018 12:57:05 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 枫 wrote: > The routine of using pg is first adding unprivileged user group and user, starting pg via the new user. > > For the safety software and the safety rule of my company.It is not easy to add a unprivileged user to operate pg. > > Can I have a way to change the restriction of the unprivileged user of pg, I want to start pg with root user.if does, how? > > Additionally, I want to know Y pg should be operate with unprivileged user, and the risk when privileged user operate pg? Are you saying that the security policy of your company forces you to run software as root rather than as an ordinary user? If yes, you should get rid of the people who came up with that policy. PostgreSQL must be run as a normal user for security reasons, namely to limit the negative effects of software bugs and user attacks. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com