Did you test this with HDFS? Because for underfsfile, it s in the underfs, you probably need to have change permission method in UnderFileSystem.java interface.