Fix the terminal unavailability caused by modifying the permissions of the usr/bin directory of MAC

Open the terminal prompt: Could not determine audit condition [process completed]

Do it yourself,,,. Good guys, Linux is still easy to use. Mac is closed like iOS, so changing a file is so troublesome.

First switch to the root user

Reference: https://blog.csdn.net/ethan__xu/article/details/89390220
But his command is not available, it still depends on me.

1. Mount the disk (key)-I also used this command to open the modification permissions at the beginning

sudo mount -uw /

2. Repair permissions

chmod 755 /usr/bin
chown root:wheel /usr/bin/login
chmod u+s /usr/bin/login

3. Switch back to your account

Normal.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41490274/article/details/114768633