Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sudoers: Intrusion Detection #59

Closed
pyllyukko opened this issue Nov 13, 2019 · 2 comments
Closed

sudoers: Intrusion Detection #59

pyllyukko opened this issue Nov 13, 2019 · 2 comments

Comments

@pyllyukko
Copy link
Owner

As we saw on Sudo Mastery book

pyllyukko added a commit that referenced this issue Dec 27, 2022
@pyllyukko
Copy link
Owner Author

sudo failed after copying 10-everything:

changed: [localhost] => (item=10-everything) => {"ansible_loop_var": "item", "changed": true, "checksum": "a125e779b6aa5cd0db4b55247be661f41c2208e6", "dest": "/etc/sudoers.d/10-everything", "gid": 0, "group": "root", "item": "10-everything", "md5sum": "6b3af6d526df67e94e5baa85c41e5833", "mode": "0400", "owner": "root", "size": 232251, "src": "/etc/sudoers.d.tmp/10-everything", "state": "file", "uid": 0}
failed: [localhost] (item=10-backup) => {"ansible_loop_var": "item", "changed": false, "item": "10-backup", "module_stderr": "\n/bin/sh: line 1: /usr/bin/python3: Permission denied\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 126}

@pyllyukko
Copy link
Owner Author

I think this is close enough. This can be extended to other binaries as needed from here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant