SaltStack Error with command cmd.run

时间:2015-07-28 16:09:01

标签: git salt-stack

I am writing you, because of an error in the order or cmd.run highstate.

I have a pkg Maldet already installed on my server which is the master, I wish to start this maldet -a /var/www i have this result that can launch scans on the SRV no problem.

Linux Malware Detect v1.4.2
            (C) 2002-2013, R-fx Networks <proj@r-fx.org>
            (C) 2013, Ryan MacDonald <ryan@r-fx.org>
inotifywait (C) 2007, Rohan McGovern <rohan@mcgovern.id.au>
This program may be freely redistributed under the terms of the GNU GPL v2

maldet(18398): {scan} signatures loaded: 10792 (8880 MD5 / 1912 HEX)

but When I run in terminal, it launches no mistake though. When I run hard with cmd.run or a state.sls gives me that same error:

SALT-MASTER: / bin / sh: 1: maldet: not found

You think of this error? is it normal ?

Thank you for your answers.

1 个答案:

答案 0 :(得分:1)

我建议按照Shikhar的建议使用可执行文件的完整路径。用户Salt正在运行,因为它的路径中可能没有Maldet。