Bacula-users

Re: [Bacula-users] How to run bacula dir and sd as non-root?

2008-12-06 19:25:06
Subject: Re: [Bacula-users] How to run bacula dir and sd as non-root?
From: Dan Langille <dan AT langille DOT org>
To: Jari Fredriksson <jarif AT iki DOT fi>
Date: Sat, 6 Dec 2008 19:22:10 -0500
On Dec 6, 2008, at 3:20 AM, Jari Fredriksson wrote:

>>
>> - One problem I haven't found a solution to is that the
>> /var/run
>> directory where the pid file goes is only writable by
>> root.
>>
>
> /var/run/bacula is the directory where my bacula writes the pid. Its  
> owned by bacula.

It does not have to be owned by bacula.

[dan@ngaio:~] $ ps auwx | grep bacula-dir
bacula   8279  0.0  0.4  8820  4196  ??  Ss   11Oct08   2:03.97 /usr/ 
local/sbin/bacula-dir -u bacula -g bacula -v -c /usr/local/etc

Running as Bacula.

[dan@ngaio:~] $ ls -l /var/run/bacula-dir.9101.pid
-rw-r-----  1 root  wheel  5 Oct 11 21:33 /var/run/bacula-dir.9101.pid
[dan@ngaio:~] $

PID is owned by root, as it should be.  This is proper behaviour.

-- 
Dan Langille
http://langille.org/




------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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