Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Remove Post...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 20 Topic 4944 of 5167
Post > Topic >>

Re: Remove Postgres from Solaris 10

by Robert.Lor@[EMAIL PROTECTED] (Robert Lor) Apr 29, 2008 at 03:48 PM

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
>> ** 


-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 20 Posts in Topic:
Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-29 03:08:26 
Re: Remove Postgres from Solaris 10
J.K.Shah@[EMAIL PROTECTED  2008-04-28 22:44:42 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 01:47:02 
Re: Remove Postgres from Solaris 10
Robert.Lor@[EMAIL PROTECT  2008-04-29 15:48:14 
Re: Remove Postgres from Solaris 10
jd@[EMAIL PROTECTED] (&q  2008-04-29 16:52:24 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 01:59:08 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 02:00:42 
Re: Remove Postgres from Solaris 10
jd@[EMAIL PROTECTED] (&q  2008-04-29 17:08:29 
Re: Remove Postgres from Solaris 10
jd@[EMAIL PROTECTED] (&q  2008-04-29 17:33:04 
Re: Remove Postgres from Solaris 10
ipolishchuk@[EMAIL PROTEC  2008-04-29 18:56:51 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 13:01:13 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 05:10:00 
Re: Remove Postgres from Solaris 10
ivaldivia@[EMAIL PROTECTE  2008-04-30 16:24:42 
Re: Remove Postgres from Solaris 10
J.K.Shah@[EMAIL PROTECTED  2008-04-29 23:57:34 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 12:59:49 
Re: Remove Postgres from Solaris 10
jd@[EMAIL PROTECTED] (&q  2008-04-29 21:07:30 
Re: Remove Postgres from Solaris 10
Robert.Lor@[EMAIL PROTECT  2008-04-30 13:25:25 
Re: Remove Postgres from Solaris 10
thomas.braeutigam@[EMAIL   2008-04-30 20:38:02 
Re: Remove Postgres from Solaris 10
Robert.Lor@[EMAIL PROTECT  2008-04-30 14:15:13 
Re: help about replication
J.K.Shah@[EMAIL PROTECTED  2008-05-01 09:00:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 21:58:33 CDT 2008.