Solution 1:

That would be System Integrity Protection at work, you can find a detailed answer here.