# Bro Cluster User

**URL:** <https://community.zeek.org/t/bro-cluster-user/3714>\
**Category:** Zeek\
**Created:** [July 16, 2015, 4:19pm UTC](https://community.zeek.org/t/bro-cluster-user/3714 "2015-07-16T16:19:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_P](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@M\_P](https://community.zeek.org/u/M_P)\
**Post date:** [July 16, 2015, 4:19pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/1 "2015-07-16T16:19:35Z")

</div>

I have finished preparing a multi-node cluster of Bro and the setup was enjoyable to say the least. Now I am stuck at getting the manager to provision the nodes with an error stating that it cannot create some of the directories on the nodes: permission denied.

The error message is pretty clear, however I am not able to find the “best practice” solution for it.

What I did was:

1. Create the bro user on both manager and nodes.
2. Gegenrate the ssh key as the user bro on the manager and copy the public key to the nodes.
3. SSH as the user bro works without password.
4. May be not necessary but I added the bro user to the sudors visduo and granted it everything a root can do.

I attempted to create a test folder where Bro is attempting to create its directories on a node, and that failed with permissions denied as expected from the Bro error message.

My options (I think) are:

1. Setup Bro as root, which I am trying to avoid in the first place.

2. Setup Bro with root initially and then change ownership of directories to the bro users. This does not seem to the right way to do though.

3. Elevate the permissions of the user Bro to have more privileges. Again, not sure if this is the right way.

You may get this question a lot, but any help or pointers are appreciated.

Thank you for reading so far.  
MP

---

<div class="post-metadata">

**Author:** ![M\_P](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@M\_P](https://community.zeek.org/u/M_P)\
**Post date:** [July 23, 2015, 5:04pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/2 "2015-07-23T17:04:28Z")

</div>

Any thoughts or pointers on this? Some googling did turn some similar issue(s) but nothing definitive. The rest of the results I have seen involved using root to setup and run Bro.

Thanks for any pointers  
MP

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [July 23, 2015, 5:13pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/3 "2015-07-23T17:13:56Z")

</div>

What is your install prefix directory (or are you just using the  
default)?

---

<div class="post-metadata">

**Author:** ![M\_P](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@M\_P](https://community.zeek.org/u/M_P)\
**Post date:** [July 23, 2015, 5:16pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/4 "2015-07-23T17:16:28Z")

</div>

> What is your install prefix directory (or are you just using the  
> default)?

Thanks for your reply Daniel.

I am using the default directory, i.e.: /usr/local/bro

---

<div class="post-metadata">

**Author:** ![Aashish\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Aashish\_Sharma1](https://community.zeek.org/u/Aashish_Sharma1)\
**Post date:** [July 23, 2015, 5:20pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/5 "2015-07-23T17:20:59Z")

</div>

> &nbsp;&nbsp;&nbsp;I attempted to create a test folder where Bro is attempting to create its  
> &nbsp;&nbsp;&nbsp;directories on a node, and that failed with permissions denied as expected

Yes, thats what is happening.

When setting up, I believe you'd want to make sure that on all the nodes, there is a directory with same path, ownership and premissions as the directory you have bro installed on the manager.

For example: if you have bro:bro with install prefix of /usr/local/bro-2.4

make sure your other nodes also have a /usr/local/bro-2.4 with bro:bro permissions.

That should fix this issue.

(Oh also make sure you ssh with both hostname and ip address once to your nodes and "yes" the ssh banner/warning)

let me know if you still encounter problems.

Aashish

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [July 23, 2015, 5:30pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/6 "2015-07-23T17:30:56Z")

</div>

OK, then when you run "broctl deploy", broctl will try  
to create the directory "/usr/local/bro" on each machine  
in your cluster. If the user that you're running  
broctl does not have write access to the "/usr/local"  
directory, then you will see a permission denied error.

Have you tried to manually create that directory on each machine,  
and then change the ownership to the user that runs  
broctl, and then run "broctl deploy"?

---

<div class="post-metadata">

**Author:** ![M\_P](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@M\_P](https://community.zeek.org/u/M_P)\
**Post date:** [July 23, 2015, 5:43pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/7 "2015-07-23T17:43:52Z")

</div>

> \> I attempted to create a test folder where Bro is attempting to create  
> its  
> \> directories on a node, and that failed with permissions denied as  
> expected
> 
> Yes, thats what is happening.
> 
> When setting up, I believe you'd want to make sure that on all the nodes,  
> there is a directory with same path, ownership and premissions as the  
> directory you have bro installed on the manager.
> 
> For example: if you have bro:bro with install prefix of /usr/local/bro-2.4
> 
> make sure your other nodes also have a /usr/local/bro-2.4 with bro:bro  
> permissions.
> 
> That should fix this issue.
> 
> (Oh also make sure you ssh with both hostname and ip address once to your  
> nodes and "yes" the ssh banner/warning)
> 
> let me know if you still encounter problems.

The rather simple steps you described above worked flawlessly! Thank you  
for that!

I was convinced that Bro will create them and I thought I was doing  
something wrong that prevented Bro from doing what it is supposed to do.

Thanks again.  
MP

---

<div class="post-metadata">

**Author:** ![M\_P](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@M\_P](https://community.zeek.org/u/M_P)\
**Post date:** [July 23, 2015, 5:45pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/8 "2015-07-23T17:45:51Z")

</div>

> OK, then when you run "broctl deploy", broctl will try  
> to create the directory "/usr/local/bro" on each machine  
> in your cluster. If the user that you're running  
> broctl does not have write access to the "/usr/local"  
> directory, then you will see a permission denied error.
> 
> Have you tried to manually create that directory on each machine,  
> and then change the ownership to the user that runs  
> broctl, and then run "broctl deploy"?

I just did like what you said and as recommended by Aashish and now I got a  
working multi-node Bro cluster, just like that 🙂

Thank you both.  
MP

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:42pm UTC](https://community.zeek.org/t/bro-cluster-user/3714/9 "2022-05-06T15:42:52Z")

</div>


