Bacula-users

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

2013-05-30 16:10:49
Subject: Re: [Bacula-users] vchanger: 0 slots problem
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 30 May 2013 16:06:45 -0400
On 5/30/2013 3:25 PM, Dimitri Maziuk wrote:
> 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.

It would be better to remove the -u and -g and setup bacula-sd to run as 
bacula:tape, or something, if possible. There shouldn't be any need for 
bacula-sd to run as root.

>
> 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
>
>
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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