Closed gustavoberman closed 1 month ago
Hmmm, I'm not sure where the 1001
came from as (like you said) you only have the one user ID and I can't see a reference to 1001
anywhere in the Malcolm source code.
When you saw this (or the equivalent non-dialog version of it) did you answer "Y"?
I'll spin up an Ubuntu 22.04 vm and see if i get the same thing as you.
Hmmm, I'm not sure where the
1001
came from as (like you said) you only have the one user ID and I can't see a reference to1001
anywhere in the Malcolm source code.When you saw this (or the equivalent non-dialog version of it) did you answer "Y"?
Yes, exactly.
I think the problem is the extracted tar.gz:
At this point in the install, it already extracts with those permisions:
$ sudo ./install.py
Installing required packages: ['apache2-utils', 'make', 'openssl', 'python3-dialog', 'python3-dotenv', 'python3-requests', 'python3-yaml', 'xz-utils']
Add a non-root user to the "docker" group? (Y / N): n
Extract Malcolm runtime files from /home/sim/Downloads/Malcomv24.06.0/malcolm_20240626_134945_75fe54ba.tar.gz? (Y / n):
Enter installation path for Malcolm [/home/sim/Downloads/Malcomv24.06.0/malcolm] (/home/sim/Downloads/Malcomv24.06.0/malcolm): /opt/malcom
Malcolm runtime files extracted to /opt/malcom
$ ll /opt/malcom/
total 108
drwxr-xr-x 19 root root 4096 jul 22 14:46 ./
drwxr-xr-x 5 root root 4096 jul 22 14:46 ../
drwxr-xr-x 3 1001 1001 4096 jun 26 17:47 arkime/
drwxr-xr-x 2 1001 1001 4096 jun 26 17:47 config/
-rw-r--r-- 1 1001 1001 22493 jun 26 17:47 docker-compose.yml
drwxr-xr-x 3 1001 1001 4096 jun 26 17:47 filebeat/
drwxr-xr-x 2 1001 1001 4096 jun 26 17:47 htadmin/
drwxr-xr-x 2 1001 1001 4096 jun 26 17:47 kubernetes/
drwxr-xr-x 4 1001 1001 4096 jun 26 17:47 logstash/
drwxr-xr-x 7 1001 1001 4096 jun 26 17:47 netbox/
-rw-r--r-- 1 1001 1001 2 jun 26 17:47 net-map.json
drwxr-xr-x 4 1001 1001 4096 jun 26 17:47 nginx/
drwxr-xr-x 3 1001 1001 4096 jun 26 17:47 opensearch/
drwxr-xr-x 2 1001 1001 4096 jun 26 17:47 opensearch-backup/
-rw------- 1 1001 1001 0 jun 26 17:47 .opensearch.primary.curlrc
-rw------- 1 1001 1001 0 jun 26 17:47 .opensearch.secondary.curlrc
drwxr-xr-x 5 1001 1001 4096 jun 26 17:47 pcap/
-rw-r--r-- 1 1001 1001 3657 jun 26 17:47 README.md
drwxr-xr-x 2 1001 1001 4096 jun 26 17:47 scripts/
drwxr-xr-x 4 1001 1001 4096 jun 26 17:47 suricata/
drwxr-xr-x 3 1001 1001 4096 jun 26 17:47 suricata-logs/
drwxr-xr-x 3 1001 1001 4096 jun 26 17:47 yara/
drwxr-xr-x 4 1001 1001 4096 jun 26 17:47 zeek/
drwxr-xr-x 7 1001 1001 4096 jun 26 17:47 zeek-logs/
I see what you're saying. the sudo install.py
should be chowning the directory and its contents and extraction but apparently is not. Thanks for bringing this to my attention, I'll get it fixed. In the meantime if you manually extract that tarball, then chown it and its contents to your UID it should work.
Describe the bug install.py fails with
KeyError: 'getpwuid(): uid not found: 1001'
I only have one sudo user "sim" and its UID is 1000
To Reproduce Steps to reproduce the behavior:
KeyError: 'getpwuid(): uid not found: 1001'
Expected behavior No error
Screenshots and/or Logs
Malcolm Version:
How are you running Malcolm?
Trying to install it in a ubuntu 22.04.