Bacula-users

Re: [Bacula-users] How To Change User or Group of Running Bacula-SD

2016-07-07 12:54:37
Subject: Re: [Bacula-users] How To Change User or Group of Running Bacula-SD
From: Heitor Faria <heitor AT bacula.com DOT br>
To: C M Reinehr <cmr AT amsent DOT com>
Date: Thu, 07 Jul 2016 13:53:51 -0300

Just set the buser and bgroop variables value at the beggining of the script. It's one of the 10-20 first lines.

Regards,
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II

61 8268-4220

www.bacula.com.br 

========================================================================

Enviado por TypeApp

Em 7 de jul de 2016, em 1:12 PM, C M Reinehr <cmr AT amsent DOT com> escreveu:
Heitor,

Thanks! That was my understanding. The file, /etc/init.d/bacula-sd, includes
the shell function:

do_start()
{

start-stop-daemon --start --quiet --pidfile $PIDFILE \
--oknodo --exec $DAEMON -- -c $CONFIG $ARGS

}

So, along with the other parameter assignment statements I added:

ARGS="-u root -g bacula"

thinking that this would do it after a restart. But, it didn't. after the
restart bacula-sd still was running as bacula/tape. Either those are not the
correct options or they are being overridden somehow -- or I just don't
understand shell programming. :-)

Cheers!

On Thursday, July 07, 2016 12:55:44 PM Heitor Faria wrote:
Hello, Mr. Reinehr,

You can change those editing daemon script: /etc/init.d/bacula-sd

Regards,



Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified
Administrator II

61 8268-4220

www.bacula.com.br





Enviado por TypeApp

Em 7 de jul de 2016 12:52 PM, em 12:52 PM, C M Reinehr <cmr AT amsent DOT com>
escreveu:
This question is directed to those familiar with the packaging of
Bacula for
Debian Linux systems. I am completing the installation of Bacula
(v5.2.6) for
a Debian "Stable" ("Jessie", v8.5) system and have a question about the
user &
group identity of the bacula-sd daemon.

From running the command `ps -ef` I determined that the default

identity is
user: bacula & group: tape. Since I'm doing backups only to disk, for
convenience I want to change the group to bacula, but I haven't been
able to
figure out how.

Unless I've overlooked something the documentation states only that you
CAN
change the user & group of the running daemons but doesn't explain how.
By
examining the manual pages for the daemons I saw the options "-u
<user>" & "-g
<group>" that could be added to the bacula-sd command so I attempted to
add a
"$ARGS" argument to the bacula-sd SysV init file. It didn't work. I'm
pretty
sure that I did this correctly but bacula-sd always runs as
bacula/tape. (FYI,
this worked in previous versions of Bacula that I have used.)

What have I missed & where can this be changed?

Thanks!

--
C M Reinehr
AMS Enterprises, LLC.
323 Bibb St (36104)
PO Box 20
Montgomery AL 36101-0020
334-269-4358 (Voice)
334-262-1706 (Fax)
----
Linux distribution Debian 8 "Jessie"
------
"In the first place, God made idiots. That was for practice. Then he
made
school boards." -- Mark Twain
--------




--- Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech
luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape


Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
C M Reinehr
AMS Enterprises, LLC.
323 Bibb St (36104)
PO Box 20
Montgomery AL 36101-0020
334-269-4358 (Voice)
334-262-1706 (Fax)
----
Linux distribution Debian 8 "Jessie"
------
Never attribute to malice that which can be adequately explained by stupidity,
but don't rule out malice." -- Albert Einstein
--------

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
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>