Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Pantheios 作为我的伐木甜品。使用它的进程当前归root所有,它创建的日志文件不会为所有用户创建具有读取权限的进程:-rwxr-x---, 1 root root process.log
如何强制创建文件对每个人都可读?
使用umask 函数为新创建的文件设置默认权限。