Problem:
I messed up my /tmp folder permissions
OS details
Solution:
Follow the below steps to get it resolved.
- Reboot your Mac into recovery mode
-
Open Utilities menu in the top bar > open Terminal
csrutil disable
-
Reboot
-
Remove the tmp folder
sudo rm -i /tmp sudo rm -r /private/tmp
-
Create tmp folder
sudo mkdir /private/tmp sudo chown root:wheel /private/tmp sudo chmod 1777 /private/tmp
-
Create the symlink
sudo ln -s /private/tmp /tmp
-
Reboot back to recovery mode and run
csrutil enable
-
Reboot
The above steps will fix the problem for you.