reserve group ids

This commit is contained in:
Josh Patterson
2025-12-03 11:19:46 -05:00
parent 55e3a2c6b6
commit aed27fa111
2 changed files with 11 additions and 2 deletions

View File

@@ -1604,16 +1604,20 @@ proxy_validate() {
reserve_group_ids() { reserve_group_ids() {
# This is a hack to fix OS from taking group IDs that we need # This is a hack to fix OS from taking group IDs that we need
logCmd "groupadd -g 920 docker"
logCmd "groupadd -g 928 kratos" logCmd "groupadd -g 928 kratos"
logCmd "groupadd -g 930 elasticsearch" logCmd "groupadd -g 930 elasticsearch"
logCmd "groupadd -g 931 logstash" logCmd "groupadd -g 931 logstash"
logCmd "groupadd -g 932 kibana" logCmd "groupadd -g 932 kibana"
logCmd "groupadd -g 933 elastalert" logCmd "groupadd -g 933 elastalert"
logCmd "groupadd -g 937 zeek" logCmd "groupadd -g 937 zeek"
logCmd "groupadd -g 939 socore"
logCmd "groupadd -g 940 suricata" logCmd "groupadd -g 940 suricata"
logCmd "groupadd -g 948 elastic-agent-pr"
logCmd "groupadd -g 949 elastic-agent"
logCmd "groupadd -g 941 stenographer" logCmd "groupadd -g 941 stenographer"
logCmd "groupadd -g 945 ossec" logCmd "groupadd -g 947 elastic-fleet"
logCmd "groupadd -g 946 cyberchef" logCmd "groupadd -g 960 kafka"
} }
reserve_ports() { reserve_ports() {

View File

@@ -682,6 +682,8 @@ if ! [[ -f $install_opt_file ]]; then
fi fi
info "Reserving ports" info "Reserving ports"
reserve_ports reserve_ports
info "Reserving group ids"
reserve_group_ids
info "Setting Paths" info "Setting Paths"
# Set the paths # Set the paths
set_path set_path
@@ -840,7 +842,10 @@ if ! [[ -f $install_opt_file ]]; then
if [[ $monints ]]; then if [[ $monints ]]; then
configure_network_sensor configure_network_sensor
fi fi
info "Reserving ports"
reserve_ports reserve_ports
info "Reserving group ids"
reserve_group_ids
# Set the version # Set the version
mark_version mark_version
# Disable the setup from prompting at login # Disable the setup from prompting at login