Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFNyc-0001cz-VN for pgsql-admin@arkaria.postgresql.org; Fri, 09 Dec 2016 16:24:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cFNyc-0006YX-F7 for pgsql-admin@arkaria.postgresql.org; Fri, 09 Dec 2016 16:24:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cFNww-0004dI-UZ for pgsql-admin@postgresql.org; Fri, 09 Dec 2016 16:23:07 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cFNwp-00032k-GF for pgsql-admin@postgresql.org; Fri, 09 Dec 2016 16:23:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=X/rjNyG2RHimUgtgozuDhPU9BvwQnTdaOubdVAo8V3o=; b=paDRelTdjEyAiRXaH+SgrhoAVt Kt5MYphwoX02OOSVgA/2nSnDLdS0zhFtyyTRpkduP+MLq+A1lbMbb7VUt0QyLmujLClqPfgIlg4KJ 52IU1fy/ln2xgcSZgznX6TwTG; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.88) (envelope-from ) id 1cFNwm-0005JK-NP; Fri, 09 Dec 2016 17:22:56 +0100 Date: Fri, 9 Dec 2016 17:22:56 +0100 From: hubert depesz lubaczewski To: Ray Stell Cc: "pgsql-admin@postgresql.org" Subject: Re: change pid/gid Message-ID: <20161209162256.3kcftdxa366jua5r@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20161126 (1.7.1) X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Fri, Dec 09, 2016 at 10:21:43AM -0500, Ray Stell wrote: > Due to some external, sysadmin issues, I'm forced to change the pid/gid of > the postresql user on CentOS6. I'm wondering if this plan of action has any > flaws. It seemed to work in a test environment to shutdown and change the > pid/gid via: > > > find / -uid 1500 -exec chown -h 2500:2500 {} \; (as root, of course) > Startup went ok, but I've not done this in production and find myself a > little nervous. I'll test in a hotstandby config here in a moment. Any > gotchas hiding in there? no real gotchas, but change \; to + so that it will be MUCH faster. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin