这包括几个步骤:1)从父进程分离2)改变文件模式掩码(umask)3)打开log文件,准备写入4)建立一个唯一的会话ID(SID)5)改变当前的工作目录到一个安全的地方6)关闭标准的文件描述符7)进入实际的...
基于102个网页-相关网页
以上来源于: WordNet
The system uses the umask value to reduce the originally requested permissions.
系统使用 umask 值来减少原始请求的权限。
So, if you would like to keep your files more private and disallow all group or other access to newly created files, you would use a umask value of 0077.
所以,如果您想要保持文件更专有,并且不允许所有组或者其他人访问新创建的文件,就是可以使用umask值0077。
Some implementations of mkstemp (3) don't set the umask (2) to a limited value, so it's wise to call umask (2) first to force the file to a restrictive value.
mkstemp(3)的一些实现并没有将umask(2)设置为一个受限的值,所以聪明的做法是先调用umask(2)来强制将文件设置为受限的值。
应用推荐