Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3A6F72E0051 for ; Tue, 29 Apr 2008 17:46:44 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56407-02 for ; Tue, 29 Apr 2008 17:46:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sca-es-mail-1.sun.com (sca-es-mail-1.Sun.COM [192.18.43.132]) by developer.postgresql.org (Postfix) with ESMTP id B2DE32E004D for ; Tue, 29 Apr 2008 17:46:40 -0300 (ADT) Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m3TKkcnX015000 for ; Tue, 29 Apr 2008 13:46:39 -0700 (PDT) Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K0300601TJHHB00@fe-sfbay-09.sun.com> (original mail from Robert.Lor@Sun.COM) for pgsql-admin@postgresql.org; Tue, 29 Apr 2008 13:46:38 -0700 (PDT) Received: from [192.168.1.108] ([76.203.242.247]) by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K03000D8TPMBR40@fe-sfbay-09.sun.com>; Tue, 29 Apr 2008 13:46:34 -0700 (PDT) Date: Tue, 29 Apr 2008 15:48:14 -0500 From: Robert Lor Subject: Re: Remove Postgres from Solaris 10 In-reply-to: <48168B9A.8060704@sun.com> To: "Jignesh K. Shah" Cc: =?ISO-8859-1?Q?Thomas_Br=E4utigam?= , pgsql-admin@postgresql.org Message-id: <4817898E.9070701@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 8BIT References: <46F5921DF52F6E40860287B30CADADC78172B9@EROS.nexus-ag.com> <48168B9A.8060704@sun.com> User-Agent: Thunderbird 2.0.0.6 (X11/20071119) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/290 X-Sequence-Number: 29054 There are a couple of options you can take to accomplish this. 1) Remove the role by running ¨roledel postgres¨ . This will remove postgres from /etc/passwd and /etc/user_attr, and you can use useradd to add postgres as a user. 2) Modify ¨postgres¨ from being a role to user. Below are the steps I use: a) run ¨passwd -d postgres¨ b) edit /etc/user_attr and change type for ¨postgres¨ from ¨role¨ to ¨user¨ c) create a home dir for postgres if needed d) use the usermod command to change the home dir and shell -Robert Jignesh K. Shah wrote: > I guess what you mean is to remove the "role" postgres so that you can > redefine it as a normal user and not remove the binaries that are > installed with Postgres as they can be overridden by having right PATH > variables > > Its easy... Modify /etc/user_attr and remove type=role from the > postgres line and modify /etc/passwd to set a home path and change > default shell to /bin/sh or /bin/bash and set password for it.. and > now you have a normal user.. > Is this what you are trying to do? > > -Jignesh > > > Thomas Bräutigam wrote: >> Hello all, >> >> I have a software solution with a postgres database. The user >> postgres is abolutly needed for my software. >> >> With Solaris 10, Postgres is automatically installed and uses the >> user postgres. How can I easily remove the current postgres install >> from this Solaris 10? Is there a process which is provided from >> Solaris to remove it? Whats the best way to do it? >> >> Thank you for your help. >> >> Cheers Thomas >> **