Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 749D613364DE for ; Thu, 23 Dec 2010 21:44:42 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 96105-08 for ; Fri, 24 Dec 2010 01:44:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mail.postgresql.org (Postfix) with ESMTP id DC8121337BD5 for ; Thu, 23 Dec 2010 21:44:34 -0400 (AST) Received: by wwi17 with SMTP id 17so6734726wwi.1 for ; Thu, 23 Dec 2010 17:44:34 -0800 (PST) Received: by 10.216.186.138 with SMTP id w10mr241559wem.1.1293155074212; Thu, 23 Dec 2010 17:44:34 -0800 (PST) Received: from [10.0.0.21] (someoneinthewild.no-ip.org [87.98.161.42]) by mx.google.com with ESMTPS id n11sm4051933wej.43.2010.12.23.17.44.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Dec 2010 17:44:33 -0800 (PST) Message-ID: <4D13FAFE.1070508@vizille.net> Date: Fri, 24 Dec 2010 02:44:30 +0100 From: Nicolas BALDECK User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Scott Marlowe CC: Tom Lane , pgsql-admin@postgresql.org Subject: Re: "root" execution not permitted. and busybox References: <1293141830332-3317041.post@n5.nabble.com> <29127.1293143731@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201012/180 X-Sequence-Number: 36409 I'm working on an embedded system, and the bundled busybox doesn't include useradd nor adduser. So I thought that it was faster to create the user that way instead of setting a toolchain and recompiling busybox... Scott Marlowe wrote: > On Thu, Dec 23, 2010 at 3:35 PM, Tom Lane wrote: > >> nbald writes: >> >>> this is driving me crazy... Do someone have an idea ? >>> >>> # echo 'pgsql:pgsql:100:100:pgsql:/home/pgsql:/bin/sh' >> /etc/passwd >>> >> That might have been the only way to create a Unix user account back >> around 1972, but it hardly seems like the recommended way now. Doesn't >> your distro provide a tool for that? >> > > Every distro I've used in the last 5 or 10 years has either adduser or > useradd and usermod for this kind of stuff. >