[H-GEN] Duplicate uid & gid

Ewan Edwards Edwards_Ewan_B at cat.com
Tue Jul 22 01:39:28 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Tuesday 22 July 2003 02:39 pm, David Jericho wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
> On Tue, Jul 22, 2003 at 02:22:53PM +1000, Ewan Edwards wrote:
> > The best thing I've thought of so far is:
> > 1. Remove Postgres.
> > 2. Take CVS off line.
> > 3. Use chown and find to change the uid and gid of all files owned by the
> > cvs account.
> > 4. Change the uid and gid for the cvs account & group in /etc/passwd &
> > /etc/group.
> > 5. Re-install Postgres.
> >
> > Any better suggestions gratefully accepted.
>
> Well, PostgreSQL only creates files in a few locations, no biggy.
>
> Change the postgresql user, then
>
> Simply trot on into /var/lib, and
>
> # chown <newuser>.<newgid> pgsql
>
> Of course, make sure the server has been shut down first.

Sounds good.  Thanks!


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list