- 博客(2)
- 收藏
- 关注
原创 umask的理解
#include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> #include<unistd.h> int main(){ int fd; umask(044); //屏蔽权限为044 fd=creat("f4",0666);//赋予权限为666 return 0; } 执行结果: -rw--w--w-. 1 root root 0 3月 20 12:54 f4 实际权...
2022-03-20 13:10:55 265
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人