mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Sudoers authenticate on per -tty basis #267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @grismemj on GitHub.
Originally assigned to: @brodjieski on GitHub.
Summary
The current check is brittle and does not find valid configurations with multiple spaces or tabs
Steps to reproduce
Put a tab instead of a space between Defaults and tty_tickets in the sudoers file, the check will fail even though this is a valid configuration
Operating System version
macOS 11.6.2
What is the current bug behavior?
Valid configurations are not identified
What is the expected correct behavior?
Any valid configuration should pass the check
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
(Paste any output that occurs with the bug)
Possible fixes
Change the test to account for spaces/tabs
grep -Ec "^Defaults\s+tty_tickets" /etc/sudoers