红联Linux门户
Linux帮助

在于umask问题

发布时间:2009-02-08 09:04:38来源:红联作者:protoss2008
[root@Tracylx test]# umask
0022
[root@Tracylx test]# touch test_file
[root@Tracylx test]# mkdir test_directory
[root@Tracylx test]# ll
total 12
drwxr-xr-x 2 root root 4096 Feb 8 08:59 test_directory
-rw-r--r-- 1 root root 0 Feb 8 08:58 test_file
[root@Tracylx test]#
---------------------------
drwxr-xr-x 目录默认权限为什么会是755
-rw-r--r-- 文件的默认权限为什么会是644?
文章评论

共有 1 条评论

  1. protoss2008 于 2009-02-08 09:11:18发表:

    看懂了,哈