From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2132 Path: news.gmane.org!not-for-mail From: Peter Hickman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Getting a process to run as root Date: Thu, 26 Apr 2012 16:11:55 +0100 Message-ID: References: <20120425150746.414ef293@b0llix.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1335453129 24762 80.91.229.3 (26 Apr 2012 15:12:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2012 15:12:09 +0000 (UTC) Cc: supervision@list.skarnet.org To: Wayne Marshall Original-X-From: supervision-return-2366-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Apr 26 17:12:05 2012 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SNQMQ-000549-2u for gcsg-supervision@plane.gmane.org; Thu, 26 Apr 2012 17:11:58 +0200 Original-Received: (qmail 11640 invoked by uid 76); 26 Apr 2012 15:15:42 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 11632 invoked from network); 26 Apr 2012 15:15:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=X33IumRcz9HRpBybGf7fP2beYizFHeK1Je5tlmqdknY=; b=PfCo+eD6Aqx9Ct3wMNOeAOkP4YGNhjxHyw2wXRvcuujdWDLgeHV251PlTFSpVuh15J njDESMw6LQgzv+dptKdETgqpYfs+XvNVGteiGySWfGOC7YR3oySzDSq2/MOXaQ/h/0hZ rssblb/DRN0JsnV5nD0hoL2UPjh+ONP2ZwFKJqKHc7v0h4kfFdx0VyDIx2xCgkavJM1c zR7iXWKYG70IamgIhCJh0BNZRpxswlZhoOp9yCM6ihjTldw97pj23ibvaNSbw5GhplsM 4sC8MCGf+pKuSzecyPlo0LVfZQ6tXvupv4hi3x0PSlZs9RfCDpTLIFL28gs70qOfh0X3 J53A== In-Reply-To: <20120425150746.414ef293@b0llix.net> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2132 Archived-At: Thanks for your help. I've added the missing groups to the user and when I run the script from the command line it works fine (sh ./service/log_watcher/run). However when I use sv start ./service/log_watcher/ the permissions have disappeared and the files can no longer be read. I have updated the /etc/sv/runsvdir-log_watcher/run to include the necessary groups to the chpst -u option but it does not seem to help (I have also tried the -U option to no avail) Any idea where I should be looking?