If you computer is peresonal and no one else use it, probably you don't need the guest user like me. Personally I dodn't like to see the guest user on my login screen.
The easy way to do it is using the System preference, here are the steps you need to follow to rid the guest user from your system.
Note: These steps must be done with your user administrator and not with the Guest user.
- Click on
Users & Groups.
- Click on the lock icon to make changes.
- Enter your password.
- Click on
Allow guests to log in to this computer.
In the next login, you won't see the guest user anymore.
If you want to use the console to make sure the Guest is disabled, you can use this command:
defaults read /Library/Preferences/com.apple.loginwindow.plist
The output will be similar to this:
GuestEnabled = 0;
OptimizerLastRunForBuild = 35951457;
OptimizerLastRunForSystem = 164624836;
lastLoginPanic = "536070145.665672";
lastUser = loggedIn;
lastUserName = myuser;
An if the previous steps to remove the guest user from the login screen didn't work, you can use this command:
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE