From owner-pcp@oss.sgi.com Sun Sep 24 23:06:52 2000 Received: by oss.sgi.com id ; Sun, 24 Sep 2000 23:06:42 -0700 Received: from min.ecn.purdue.edu ([128.46.200.41]:35530 "EHLO min.ecn.purdue.edu") by oss.sgi.com with ESMTP id ; Sun, 24 Sep 2000 23:06:19 -0700 Received: from localhost (butta@localhost) by min.ecn.purdue.edu (8.9.3/8.9.3moyman) with ESMTP id BAA23901 for ; Mon, 25 Sep 2000 01:06:08 -0500 (EST) Date: Mon, 25 Sep 2000 01:06:07 -0500 (EST) From: Ali Raza Butt To: pcp@oss.sgi.com Subject: Running PCP as non-privileged user Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;pcp-outgoing Hi, I am working on a system monitoring project and am thinking about utilizing PCP. What I want to inquire is that what level of changes are required to provide for running pcp as a non privilged user. The goal is to be able to monitor a systems resources without having any privileged acess at all, not even for installation etc. I'll appreaciate an early reply. Thanx -ali From owner-pcp@oss.sgi.com Mon Sep 25 00:13:43 2000 Received: by oss.sgi.com id ; Mon, 25 Sep 2000 00:13:32 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:18467 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 25 Sep 2000 00:13:21 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id AAA20624 for ; Mon, 25 Sep 2000 00:05:37 -0700 (PDT) mail_from (max@kuku.melbourne.sgi.com) Received: from kuku.melbourne.sgi.com (kuku.melbourne.sgi.com [134.14.55.163]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id SAA19177; Mon, 25 Sep 2000 18:12:02 +1100 Received: (from max@localhost) by kuku.melbourne.sgi.com (SGI-8.9.3/8.9.3) id SAA06879; Mon, 25 Sep 2000 18:12:00 +1100 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14798.64192.463489.186084@kuku.melbourne.sgi.com> Date: Mon, 25 Sep 2000 18:12:00 +1100 (EST) From: Max Matveev To: Ali Raza Butt Cc: pcp@oss.sgi.com Subject: Re: Running PCP as non-privileged user In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid Sender: owner-pcp@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;pcp-outgoing >>>>> "ARB" == Ali Raza Butt writes: ARB> I am working on a system monitoring project and am thinking about ARB> utilizing PCP. What I want to inquire is that what level of changes are ARB> required to provide for running pcp as a non privilged user. Limited - you'd have to make sure that you can read and write a few files (pmlogger stuff comes to mind first). And you can miss on few linux metrics but the infrastructure itself should be Ok. ARB> The goal is ARB> to be able to monitor a systems resources without having any privileged ARB> acess at all, not even for installation etc. RPM would want to write to /var/lib/rpm so this one will be difficult. To try, I'd start with installing RPM as root, commenting out line 85 in /etc/rc.d/init.d/pcp (it say 'exit'). then just /etc/rc.d/init.d/pcp start as user. It will complain but pmcd will start and will actually work. It's now up to you to decide how much you're mising. max