Bacula-users

Re: [Bacula-users] sudo with Bacula user on MacOsX without password

2012-08-23 13:24:40
Subject: Re: [Bacula-users] sudo with Bacula user on MacOsX without password
From: "Clark, Patricia A." <clarkpa AT ornl DOT gov>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 23 Aug 2012 13:21:31 -0400
On 8/23/12 10:48 AM, "Julien Cochennec" <julien.cochennec AT mnhn DOT fr> wrote:


>Hi Everybody,
>Maybe a simple (dumb?) question :
>
>1) Description
>Bacula-fd is running as a service on Mac Os X clients so I would like to
>make a "ClientRunAfterJob" command, as root, without password, to switch
>the computer if nobody has a tty session opened. The way I get number of
>sessions is easy -> if("$(who -u | grep -c tty)==0");then sudo halt;fi
>The hardest part was finding how to make "|" on Mac Keyboard :-).
>If the "" makes me mad, I will put it in a script "baculaHalt.app" and
>run it from ClientRunAfterJob.
>The command works easily on Linux, so I would like to make it work on
>MacOsX.
>
>2) Question
>Anyway if I want to run a sudo command with bacula, I need to add bacula
>user in the sudoers file and let it execute the halt command without
>password. But even in the activity monitor I can't find the username
>that runs the bacula-fd. Any clue? Is it Root?
>
>Thanks Everybody. Have a nice day.
>
>--------------------------------------------------------------------------
>----

bacula-fd runs as the root user.

Patti Clark
Information International Associates, Inc.
Linux Administrator and subcontractor to:
Research and Development Systems Support Oak Ridge National Laboratory


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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>