Rafi Achraf
Rafi Achraf

Reputation: 25

SaltStack Error with command cmd.run

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 <[email protected]>
            (C) 2013, Ryan MacDonald <[email protected]>
inotifywait (C) 2007, Rohan McGovern <[email protected]>
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.

Upvotes: 2

Views: 730

Answers (1)

Utah_Dave
Utah_Dave

Reputation: 4581

I recommend following Shikhar's suggestion of using the full path to the executable. The user Salt is running as might not have Maldet in it's path.

Upvotes: 1

Related Questions