pcp
[Top] [All Lists]

Re: Installing files/dirs as non-root:root user and group

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: Installing files/dirs as non-root:root user and group
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu, 20 Jun 2013 15:37:42 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <698020944.4509484.1371683485976.JavaMail.root@xxxxxxxxxx>
References: <698020944.4509484.1371683485976.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6
Hey Nathan,

I was still unable to find a suitable place among the {GNU}makefiles, but making changes to src/pmcd/rc_pmcd seems to do the trick (when pmcd is started as a system daemon). Please have a look at the attached patch.

Thanks
Dave

On 06/19/2013 07:11 PM, Nathan Scott wrote:
Hi Dave,

<brolley> nathans, do you recall an irc conversation in which we
agreed to adjust the permissions of ${localstatedir}/pcp to:
root pcp rwxrwxr-x    ?
<brolley> (to allow pmcd to delete ${localstatedir}/pcp/pmcd.socket)
<brolley|afk> nathans, gotta run now, but the thing is that I
looked a couple of times, but couldn't find the right place to
get that done in the rpm (at least the one used by ./Makepkgs).
Any pointers would be appreciated
* brolley|afk has left #pcp

Yeah, you're blazing a trail here :)  - don't think we install
anything else not-as-root:root yet.  The install.sh script has
-o/-g (owner/group) options, and $PCP_USER and $PCP_GROUP are
nowadays defined in the build ... I'd start with those and see
if they work out (makefile changes, iow).  If not, we'll need
to find where that info is getting dropped/lost and tackle that.

cheers.

--
Nathan

Attachment: PCP_RUN_DIR-perms.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>