0

Let's say I have a salt-master and decide to run some arbitrary command in all my minions. But because I had a bad night, I was robbed on my way to work, my boss yelled at me for being late and my co-workers decided to play on me that nasty joke with pins and needles, instead of doing a harmless:

salt '*' cmd.run "rm -rf /var/tmp/some/directory/with/redundant/data"

What comes out is:

salt '*' cmd.run "rm -rf /"

Disaster! Is there any way that I can "blacklist" certain commands so they can't be executed using cmd.run?

Thanks in advance.

  • Was this question answered to your satisfaction? – Dan Garthwaite Feb 2 '15 at 2:33
  • Not really. But the only answer is probably right, so I'll mark the question as answered. – rsuarez Feb 2 '15 at 8:06
2

No. Not without customizing the source code.

| improve this answer | |
  • @slm I believe it does. He didn't ask howto, he asked if it was possible. Should I still delete this answer and use the comments? – Dan Garthwaite Dec 5 '13 at 22:51
  • @slm This answers the question just fine. Sometimes "No" is the answer. – ceejayoz Dec 5 '13 at 22:55
  • No leave it, I missed that he didn't want to know how. Sorry about that. – slm Dec 5 '13 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.