Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## added to sudoers file
- jenkins ALL=(ALL) NOPASSWD: /usr/bin/salt-call event.fire_master*
- # cli command to send event to Salt Master
- jenkins@daveMinion:/test$ sudo salt-call event.fire_master 'tests passed' 'jenkins'
- local:
- True
- # attempted use of other salt commands.
- jenkins@daveMinion:/test$ sudo salt-call pkg.install vim
- [sudo] password for jenkins:
- Sorry, user jenkins is not allowed to execute '/usr/bin/salt-call pkg.install vim' as root on localhost.
- # attempted potentially malicious command from cli
- jenkins@daveMinion:/test$ sudo salt-call cmd.run 'cat /etc/shadow'
- [sudo] password for jenkins:
- Sorry, user jenkins is not allowed to execute '/usr/bin/salt-call cmd.run cat /etc/shadow' as root on localhost.
- jenkins@daveMinion:/test$ salt-call cmd.run 'cat /etc/shadow'
- Error parsing configuration file: /etc/salt/minion - [Errno 13] Permission denied: '/etc/salt/minion'
- Failed to create directory path "/etc/salt/pki/minion" - [Errno 13] Permission denied: '/etc/salt/pki/minion'
Advertisement
Add Comment
Please, Sign In to add comment