The sudoers file must be configured to authenticate users on a per-tty basis.

From Apple OS X 10.8 (Mountain Lion) Workstation STIG

Part of SRG-OS-999999

Associated with: CCI-000366

SV-65451r1_rule The sudoers file must be configured to authenticate users on a per-tty basis.

Vulnerability discussion

Do not allow direct root login because the logs cannot identify which administrator logged in. Instead, log in using accounts with administrator privileges, and then use the sudo command to perform actions as root. This limits authorization to the terminal in which authentication occurred.

Check content

To check if the tty_tickets option is set for sudo, run the following command: sudo grep tty_tickets /etc/sudoers If there is no result, this is a finding.

Fix text

Edit the /etc/sudoers file to contain the line "Defaults tty_tickets"

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer