From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2139 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: Fri, 27 Apr 2012 10:18:52 +0100 Message-ID: References: <20120425150746.414ef293@b0llix.net> <20120426204920.77c8315d@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 1335518336 22414 80.91.229.3 (27 Apr 2012 09:18:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 09:18:56 +0000 (UTC) Cc: supervision@list.skarnet.org To: Wayne Marshall Original-X-From: supervision-return-2373-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 27 11:18:55 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 1SNhKJ-0004Tn-DZ for gcsg-supervision@plane.gmane.org; Fri, 27 Apr 2012 11:18:55 +0200 Original-Received: (qmail 24946 invoked by uid 76); 27 Apr 2012 09:22:39 -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 24938 invoked from network); 27 Apr 2012 09:22:39 -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=08dvhFA3TeTCMvpBaGsKfVtXobL6Bq54fjsg0EfyKd0=; b=VyL9PYYoPEcmo36IGCMItXzfu5SbZYJojlTLNFf025tfOEwjput7JlW2Lhia40BDbr gPM8RAXQ73/BsQfpFrmnhyfVsHtLXGEpy1Q9wMHwO7vpl5Z/HxqljUXtZZFJ/P/+T97p 3WTxWGxhyzEu4Q35qSt2UMyv9qPo40gdczCKm3K1vY+o3xBXw25oIvjxr6tl1Oi7VnHM LmkMzQKnKDjX6h1foK/8BQtR8evLFn2jjpOl6KQJBYLnG3qQFIJqzIJBaPXJ5sUezcbS CZeU2lBcHvMjia1ogl+kUmP/0EhTjCDjqAy6MMVWg66DnTffcFvk9PJ7I6WY1Pz4BNRS WE6w== In-Reply-To: <20120426204920.77c8315d@b0llix.net> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2139 Archived-At: When I run it just as ./service/log_watcher/run it runs fine Here is the /etc/sv/runsvdir-log_watcher/run file #!/bin/sh RUNIT_USER=log_watcher:root:adm exec 2>&1 exec chpst -u$RUNIT_USER runsvdir /home/log_watcher/service I've tried a variety of combinations and values for the -u and -U settings to no avail The program runs but when it attempts to access the log files it no longer has permission to do so (just like it was before I added the missing groups to the log_watcher user).