Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2000 12:21:40 -0600
From:      Brad Guillory <round@baileylink.net>
To:        freebsd-security@freebsd.org
Subject:   Re: Nonpriveleged daemons and pid files
Message-ID:  <20000217122140.D11118@baileylink.net>
In-Reply-To: <00021720524101.23691@newbee.web2000.ru>; from novikov@webclub.ru on Thu, Feb 17, 2000 at 08:47:26PM %2B0300
References:  <00021720524101.23691@newbee.web2000.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Write a startup script for the application that "touch"es the pid
file then "chown"s it to the appriopriate user.  Or make a daemon
group and put all the daemons in it, then chgrp the /var/run directory
to daemon group and chmod it to 775. (Sorry neither are tested.)

BMG


On Thu, Feb 17, 2000 at 08:47:26PM +0300, Andrey Novikov wrote:
> Hello,
> 
> now more and more daemons can be run from non-priveleged
> account - BIND, MTAs, DBMS'es and so on, but it
> sometimes leads to two minor problems - either this daemon
> can't create pid file in /var/run or it can't update it on
> restart. What is the common way to overcome that problem -
> it's very convinient to store them in one place.
> 
> Andrey Novikov
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000217122140.D11118>