Runuser Error on debian 11

554 views
Skip to first unread message

Barry Awure

unread,
Nov 26, 2022, 9:03:09 AM11/26/22
to Wazuh mailing list
Hi Team,
I ran into this error while setting up wazuh. Kindly help in resolution.

root@mysoc:/etc/wazuh-indexer# /usr/share/wazuh-indexer/bin/indexer-security-init.sh
/usr/share/wazuh-indexer/bin/indexer-security-init.sh: line 104: runuser: command not found

My installation is on Debian 11. 
I have installed wazuh-indexer 4.3

Damian Nicastro

unread,
Nov 28, 2022, 1:47:53 AM11/28/22
to Wazuh mailing list
Hi awurebarry:
I hope you are fine.
I have tried in my lab and the command works fine.
First, ensure that file is there and has the proper permissions to be executed:
# ls -l  /etc/wazuh-indexer# /usr/share/wazuh-indexer/bin/

The "runuser" command might not be available in the default Debian installation.
Please, consider that Wazuh supports these operating systems:

I hope this helps.
Thanks

Trevor Durity

unread,
Aug 11, 2023, 3:53:45 PM8/11/23
to Wazuh mailing list
Same issue here. It turns out that /sbin is not in the path by default on Debian 11 so just run

export PATH=/sbin:$PATH

You can persist by adding it to /etc/profile

Trev

Reply all
Reply to author
Forward
0 new messages