66

umask-菜鸟的成长之路-51CTO博客

 6 years ago
source link: http://blog.51cto.com/12777709/2067560
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
umask是决定默认创建的文件和创建的目录的权限目录是用最高权限777减去默认的umask值022得出的755文件是用权限666减去默认的umask值022得出的644由于在umask中所指定的权限是要从文件中删除的,所以,如果该文件原来的初始化权限是777,那么执行命令umask022以后,该文件的权限将变为755:如果该文件原来的初始化权限是666,那么该文件的权限将变为644。查看umask

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK