security command.
Note:
If the loginwindow application is running, you must restart it to apply your changes. If no users are currently signed in to the computer, you can close the loginwindow application as root with the following command: sudo killall loginwindow
If a user is currently logged in to the computer, the user must log out.
Additionally, it may be useful to leave a local administrator account logged in to a Finder session, and then Fast User Switch to the login window. Using the killall command above will kill any Finder sessions currently running, including your local administrator account.
Note:
Fast User Switching must be enabled on the computer to use this feature. Navigate to .