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@lists.sourceforge.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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users