V2EX  ›  英汉词典
Enqueued related words: Setuid

Umask

释义 Definition

umask(用户文件创建掩码):在类 Unix 系统中,用来限制新建文件/目录的默认权限的设置。它会从系统的“默认权限”中屏蔽(去掉)某些权限位,从而决定新建对象最终得到的权限。(在命令行里也常见 umask 命令用于查看/设置该值。)

发音 Pronunciation (IPA)

/ˈjuːmæsk/

例句 Examples

I set the umask to 022 so new files aren’t writable by everyone.
我把 umask 设为 022,这样新建文件就不会对所有人开放写权限。

In a multi-user environment, an incorrect umask can accidentally expose sensitive files created by scripts and cron jobs.
在多用户环境中,不正确的 umask 可能会让脚本和定时任务创建的敏感文件被意外暴露。

词源 Etymology

umask 来自 Unix 术语 user mask(用户掩码),“mask(掩码)”表示用一个值去遮住/屏蔽某些权限位;因此 umask 的核心含义就是“用掩码把不希望默认开放的权限去掉”。

相关词 Related Words

文学与著作中的用例 Literary Works

  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)
  • The Linux Programming Interface(Michael Kerrisk)
  • UNIX Network Programming(W. Richard Stevens 等)
  • The Unix Programming Environment(Brian W. Kernighan, Rob Pike)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   681 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 21:49 · PVG 05:49 · LAX 13:49 · JFK 16:49
♥ Do have faith in what you're doing.