OSX00110 - Restrict sudo usage - 'tty_tickets'

Information

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. These limit the use of the sudo command to a single command per authentication and also ensure that, even if a timeout is activated, that later sudo commands are limited to the terminal in which authentication occurred. Note- Admin privilege may be needed to perform some commands.

Solution

Open a terminal session and enter the following commands to set the values in the /etc/sudoers file-
echo 'Defaults tty_tickets' >> /etc/sudoers echo 'Defaults timestamp_timeout=0' >> /etc/sudoers
Note- Admin privilege may be needed to perform some commands.

See Also

http://iase.disa.mil/stigs/os/mac/u_mac_osx10.5_v1r2_stig_20110729.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(7), CAT|I, Rule-ID|SV-31319r1_rule, STIG-ID|OSX00110, Vuln-ID|V-25262

Plugin: Unix

Control ID: 7fffc63bc9227ff3838c4bc85d2f392bd1c3ac60595f12573415896d0bdcddbd