Restricted files on El Capitan?
I have solved this issue only by booting to Recovery Mode (press CMDR during restart) and launching Terminal. This terminal doesn't care abour restricted flag on files. Also found answer here:
How do I disable System Integrity Protection (SIP) AKA &quot;rootless&quot; on OS X 10.11, El Capitan?