Skip to content

bkmonitorbeat指定用户执行script采集权限不足 #685

@abbhb

Description

@abbhb

``操作系统信息:
Centos7 5.4.277-1.el7.elrepo.x86_64 GNU/Linux
版本信息:
12f6d29

问题描述:
当指定的执行用户是小权限用户例如mqm用户

Image

bkmonitorbeat会以mqm用户执行xxx/cw_ibmmq_script/./start.sh

Image

但该文件下发默认未对mqm用户授权,会报权限不足,下面是详细日志:

2025-01-15 18:10:25.117 ERROR   script/gather.go:63     execute command (/usr/local/gse_monitor/external_plugins/sub_800_host_409/cw_ibmmq_script/./start.sh) failed, out=(), err: fork/exec /usr/local/gse_monitor/external_plugins/sub_800_host_409/cw_ibmmq_script/./start.sh: permission denied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions