Q: sudo won't work but su does
I'm trying to install rails on OSX El Capitan 10.11.3, and it's trying to sudo. When I type in the root password it doesn't accept it (Sorry, try again). I know the password is correct because I can 'su' and it works, plus I can log in directly as root as a user and it works. I've disabled SIP. Any ideas?
MacBook Pro (Retina, 15-inch, Mid 2014)
Posted on Feb 25, 2016 7:51 AM
It appears that you are not using the sudo command correctly. You must be logged into the computer with a password protected admin account. Then use sudo command and you will be prompted for the password of the admin account you are logged in with.
Mac OS X: sudo command requires a non-blank admin password - Apple Support
Posted on Feb 25, 2016 8:04 AM