Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/ethan__xu/article/details/89390220
Open Terminal again Tip: Last login: Fri Jul 13 10:09:35 on ttys001login: login: Could not determine audit condition [ process is complete]
solution is as follows:
- First need to root recovery sudo command
Open System Preferences
- Exit the current user, click Other, enter the root login user name and password, enter the root
- Reset sudo property
$ chown root / usr / bin / sudo
$ chmod 4755 / usr / bin / sudo
exit the root account login status, switch back to the original user
execute sudo command
after normal sudo command to disable the root account - Login ordinary users will login privileges restored 4755
- sudo chmod 4755 / usr / bin / login
to open the console again has returned to normal.