课程: Linux: Files and Permissions
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Initial permissions using umask
- [Instructor] When files are created, initial permissions are applied automatically. These permissions are calculated based on a bit mask called umask. To see your umask, type into a terminal, umask, and hit enter. We can also view the umask in symbolic notation by using the -S option. Type in umask -S and hit enter. The umask can have either three characters or four. Feel free to add the leading zero or leave it off for standard permissions. Notice that the umask isn't the same format as numeric permission, such as 754 is actually upside down, since it's a mask. To calculate initial permissions we'll have to subtract the umask from maximum allowed initial permissions, based on whether the item is a file or a directory. For directories our maximum initial permission are 777, since having execute on a directory does not create a security risk. Let's use a umask of 022. Now let's subtract the umask from the…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
Standard Linux permissions overview1 分钟 52 秒
-
(已锁定)
File and directory modes1 分钟 16 秒
-
(已锁定)
File ownership3 分钟 14 秒
-
(已锁定)
Permissions using numeric notation3 分钟 2 秒
-
(已锁定)
Permissions using symbolic notation4 分钟 44 秒
-
(已锁定)
Initial permissions using umask4 分钟 30 秒
-
(已锁定)
Special file bits: SUID and SGID4 分钟 59 秒
-
(已锁定)
Special directory bits: SGID and Sticky5 分钟 53 秒
-
(已锁定)
Challenge: Permissions2 分钟 16 秒
-
(已锁定)
Solution: Permissions4 分钟 19 秒
-
(已锁定)
-
-