Bacula-users

Re: [Bacula-users] vchanger: 0 slots problem

2013-05-30 15:29:11
Subject: Re: [Bacula-users] vchanger: 0 slots problem
From: Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 30 May 2013 14:25:32 -0500
On 05/30/2013 10:13 AM, Josh Fisher wrote:

> Remember that vchanger will be run as the same uid:gid that bacula-sd 
> runs as.

On cenots 6 by default that's root:root. That's the problem:

./vchanger vchanger.conf slots
Failed to switch to user .. Refusing to run as root

Using
Changer Command = "/etc/bacula/vchanger -u bacula -g bacula %c %o %S %a %d"
fixed it.

FYI, on centos 6 (presumably entire RHEL6 family) $SD_USER and $SD_GROUP
can be set in /etc/sysconfig/bacula-sd. By default that file does not
exist and everything runs as whoever runs init.

Thanks
-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users