fchmodSync(path, mode, callback)
path 文件路径
mode 文件读写权限(参考 mode表)
var fs = require("fs");
fs.open("./liboke/test.txt", "w+", function(err, fd){
if(err){
console.log("打开文件失败");
}else{
try{
fs.fchmodSync(fd, 0666);
console.log("成功");
}catch(e){
console.log("失败");
}
}
});