[Bacula-users] sudo with Bacula user on MacOsX without password
2012-08-23 11:07:34
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.
------------------------------------------------------------------------------
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>
|
- [Bacula-users] sudo with Bacula user on MacOsX without password,
Julien Cochennec <=
|
|
|