[H-GEN] Duplicate uid & gid

David Jericho davidj at pisoftware.com
Tue Jul 22 00:39:30 EDT 2003


[ 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.

-- 
David Jericho
Systems Administrator, Plugged In Software

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