Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/collectors/filebeat_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (f Filebeat) Install() error {
return fmt.Errorf("error creating %s service: %v", config.ModulesServName, err)
}

if err = utils.Execute("chmod", filebLogPath, "-R", "777", "filebeat"); err != nil {
if err = utils.Execute("chmod", filebLogPath, "-R", "755", "filebeat"); err != nil {
return fmt.Errorf("error executing chmod: %v", err)
}

Expand Down
4 changes: 2 additions & 2 deletions agent/updates/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func handleDependenciesPostDownload(dependencies []string) error {
}

if runtime.GOOS == "linux" || runtime.GOOS == "darwin" {
if err := utils.Execute("chmod", utils.GetMyPath(), "-R", "777", fmt.Sprintf(config.UpdaterSelf, "")); err != nil {
if err := utils.Execute("chmod", utils.GetMyPath(), "-R", "755", fmt.Sprintf(config.UpdaterSelf, "")); err != nil {
return fmt.Errorf("error executing chmod on %s: %v", fmt.Sprintf(config.UpdaterSelf, ""), err)
}
}
Expand All @@ -48,7 +48,7 @@ func handleDependenciesPostDownload(dependencies []string) error {
return fmt.Errorf("error removing file %s: %v", file, err)
}
} else if runtime.GOOS == "linux" || runtime.GOOS == "darwin" {
if err := utils.Execute("chmod", utils.GetMyPath(), "-R", "777", file); err != nil {
if err := utils.Execute("chmod", utils.GetMyPath(), "-R", "755", file); err != nil {
return fmt.Errorf("error executing chmod on %s: %v", file, err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent/updates/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func UpdateDependencies(cnf *config.Config) {
}

if runtime.GOOS == "linux" || runtime.GOOS == "darwin" {
if err = utils.Execute("chmod", utils.GetMyPath(), "-R", "777", filepath.Join(utils.GetMyPath(), fmt.Sprintf(config.ServiceFile, "_new"))); err != nil {
if err = utils.Execute("chmod", utils.GetMyPath(), "-R", "755", filepath.Join(utils.GetMyPath(), fmt.Sprintf(config.ServiceFile, "_new"))); err != nil {
utils.Logger.ErrorF("error executing chmod: %v", err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion etc/opensearch/2.x/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN yum update -y && \
rm -rf /usr/share/man /usr/share/doc /usr/share/info /tmp/* /var/tmp/*

# Assign permissions and ownership to the extracted folder
RUN chmod -R 777 /usr/share/opensearch/.utm_geoip && \
RUN chmod -R 755 /usr/share/opensearch/.utm_geoip && \
chown -R opensearch:opensearch /usr/share/opensearch/.utm_geoip

# Restore OpenSearch user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PLATFORM = [
`/opt/utmstack-linux-collectors/as400 && cd /opt/utmstack-linux-collectors/as400 && ` +
`wget --no-check-certificate ` +
`https://V_IP:9001/private/dependencies/collector/linux-as400-collector.zip ` +
`&& unzip linux-as400-collector.zip && rm linux-as400-collector.zip && chmod -R 777 ` +
`&& unzip linux-as400-collector.zip && rm linux-as400-collector.zip && chmod -R 755 ` +
`utmstack_collectors_installer && ./utmstack_collectors_installer install as400 ` +
`V_IP <secret>V_TOKEN<secret>"`,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class GuideLinuxAgentComponent implements OnInit {
return `sudo bash -c "apt update -y && apt install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
chmod -R 755 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

Expand All @@ -49,7 +49,7 @@ export class GuideLinuxAgentComponent implements OnInit {
return `sudo bash -c "yum install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
chmod -R 755 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

Expand All @@ -59,7 +59,7 @@ export class GuideLinuxAgentComponent implements OnInit {
return `sudo bash -c "dnf install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
chmod -R 755 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

Expand Down
Loading