idaholab / Malcolm

Malcolm is a powerful, easily deployable network traffic analysis tool suite for full packet capture artifacts (PCAP files), Zeek logs and Suricata alerts.
https://idaholab.github.io/Malcolm/
Other
327 stars 53 forks source link

Exception: auth_setup should not be run as root #443

Closed kirankalelkar closed 3 months ago

kirankalelkar commented 3 months ago

i have tried but no luck when i run the ./scripts/auth_setup getting below error. Exception: auth_setup should not be run as root

please check below screenshot for your referance. malcolm fail 1

mmguero commented 3 months ago

Looking at the screenshot, very first line, I can see "root@". For security reasons, Malcolm should not be installed nor run as the root user, just as that error message says. You should start your installation over and make sure that the Malcolm installation directory is owned by a non-root user, and that you run configure and auth_setup as a non-root user.

kirankalelkar commented 3 months ago

i tried with non-root user but getting same issue. Please check attached screenshot for your referance.

malcolm fail 2

mmguero commented 3 months ago

I apologize for the confusion. In that screenshot you're running install.py, which does prompt you to make some system changes (e.g., changes to sysctl.conf) which does require root. However, once the install.py stage is done, the configure and auth_setup steps are done as non-root.

That is what is outlined in the documentation.

kirankalelkar commented 3 months ago

Sir i tried the same install.py run from root user and configure and auth_setup run using non root user but getting same issue. please check last comment screenshot and check the below mentioned error.

test@malcolm-test:/opt/Malcolm$ ./scripts/auth_setup Exception: auth_setup requires docker, please run install.py

mmguero commented 3 months ago

The error messages and the documentation are telling you exactly what you need to do. Malcolm requires docker. The install.py script will install docker, which is required prior to running auth_setup. Please follow the instructions carefully and it will work as expected.

image

If going through the docker-based setup is too complicated, you might try using the ISO installers which has Malcolm and Docker already set up. The installation ISOs can be found here.