1
00:00:01,140 --> 00:00:05,420
You may be wondering about where this file permissions came from.

2
00:00:05,430 --> 00:00:07,800
So the answer is U-mask.

3
00:00:07,830 --> 00:00:08,730
U-mask.

4
00:00:10,130 --> 00:00:15,800
So the command sets the default permissions for any file or directory you create.

5
00:00:15,800 --> 00:00:21,020
So, for example, torch my new file and here we're going to see here.

6
00:00:21,240 --> 00:00:24,320
LS L and new file here.

7
00:00:24,410 --> 00:00:24,860
Oops.

8
00:00:24,860 --> 00:00:26,930
Not my new file.

9
00:00:26,960 --> 00:00:28,250
My new file.

10
00:00:29,720 --> 00:00:37,130
So here, as you can see here, the touch command created the file using the default permissions assigned

11
00:00:37,130 --> 00:00:38,420
to my user account.

12
00:00:38,720 --> 00:00:40,310
As you can see here, that's it.

13
00:00:40,550 --> 00:00:44,780
The command shows the sets, the default permission.

14
00:00:45,050 --> 00:00:49,550
So unfortunately, the UMass command setting isn't overtly clear.

15
00:00:49,550 --> 00:00:57,790
So and trying to understand exactly how it works make things even muddier and hard to understand.

16
00:00:57,800 --> 00:01:01,580
So the first digit represents a special.

17
00:01:02,370 --> 00:01:05,850
Security feature assigned to a file you mask here.

18
00:01:06,120 --> 00:01:15,060
As you can see in my case, it's 022 and probably you will have that number 2 or 0 two 2 or 0 zero 222.

19
00:01:15,780 --> 00:01:19,890
So we will talk more about that later in this course.

20
00:01:20,130 --> 00:01:24,390
And the first let's get started with understanding our file permissions.

21
00:01:24,390 --> 00:01:30,690
So the next three digits represents the octal values of the mask for a file or directory.

22
00:01:30,690 --> 00:01:38,250
So to understand how your mask works, you first need to understand the octal mode security settings.

23
00:01:41,630 --> 00:01:42,200
So.

24
00:01:42,200 --> 00:01:50,870
Ogden Most security settings take the three RW x permission values and convert them into a three bit

25
00:01:50,870 --> 00:01:56,990
binary value represented by a single octet value in this permission here.

26
00:01:56,990 --> 00:02:02,050
So in the binary representation, each position is a binary bit.

27
00:02:02,060 --> 00:02:08,990
So it is if the read permission is the only permission set, the value becomes is going to be r minus

28
00:02:09,440 --> 00:02:11,210
r null null here.

29
00:02:11,210 --> 00:02:18,350
So relating to the binary value of 100, so indicating the octal value for that's it.

30
00:02:18,530 --> 00:02:20,600
And you will learn all of this in this lecture.

31
00:02:20,600 --> 00:02:25,940
So let's get started with our representation of file permission codes in Linux.

32
00:02:25,940 --> 00:02:28,910
So permissions, firstly, we're going to write it.

33
00:02:28,910 --> 00:02:29,840
Permissions.

34
00:02:31,230 --> 00:02:32,280
Binary.

35
00:02:32,760 --> 00:02:33,950
Binary.

36
00:02:33,960 --> 00:02:36,120
And here we're going to have octal.

37
00:02:36,990 --> 00:02:37,920
Octal.

38
00:02:37,920 --> 00:02:42,540
And lastly, the description description.

39
00:02:42,540 --> 00:02:43,860
And here the information.

40
00:02:43,860 --> 00:02:48,930
For example, if you don't if we don't have a permission here, then we're going to binary, we're going

41
00:02:48,930 --> 00:02:50,100
to have 000.

42
00:02:50,100 --> 00:02:56,160
And in octal we will also have zero and it's going to description is going to be no permission.

43
00:02:56,160 --> 00:02:59,310
So actually I will share this file after completing it.

44
00:02:59,310 --> 00:03:06,510
So this will you will need this file after some time in assigning the permissions in files or folders.

45
00:03:06,870 --> 00:03:09,960
So this has no permissions at all.

46
00:03:09,960 --> 00:03:21,150
So permissions here and we will have the Z null null X here, which is going to be 001 and one.

47
00:03:21,970 --> 00:03:27,340
And is going to be, as you remember in previous lecture, what's going to be it's going to be executable

48
00:03:27,340 --> 00:03:31,030
and here execute only execute.

49
00:03:33,250 --> 00:03:35,590
Execute only permission.

50
00:03:35,890 --> 00:03:40,330
And we will also we can also have the right only permission here.

51
00:03:40,330 --> 00:03:43,810
You will learn you have learned this in previous lectures.

52
00:03:43,810 --> 00:03:50,020
So 010, and this is going to be two and this is going to be right only permission.

53
00:03:50,020 --> 00:03:54,850
And here we will also have zero X guess what it is.

54
00:03:55,820 --> 00:04:00,080
011 and it's going to be three, which.

55
00:04:01,470 --> 00:04:02,220
Remember.

56
00:04:03,560 --> 00:04:07,970
Yeah, it's going to be a write and execute permission.

57
00:04:10,110 --> 00:04:12,690
And here we also have our minus.

58
00:04:12,690 --> 00:04:13,260
Minus.

59
00:04:13,260 --> 00:04:17,290
And it's going to be, guess what, 100.

60
00:04:17,310 --> 00:04:19,020
And here we're going to have four.

61
00:04:19,020 --> 00:04:26,940
And as the name implies, and you learned in previous lecture, it's going to be read only permission.

62
00:04:27,660 --> 00:04:32,670
We can also have our X, which is going to be one.

63
00:04:34,820 --> 00:04:35,390
Guess what?

64
00:04:37,600 --> 00:04:42,190
Zero one and here we're going to have Octal five and it's going to be read.

65
00:04:43,790 --> 00:04:44,320
Yeah.

66
00:04:44,330 --> 00:04:46,820
Read and execute.

67
00:04:48,030 --> 00:04:49,740
And here we will have.

68
00:04:49,860 --> 00:04:50,210
Yeah.

69
00:04:50,220 --> 00:04:50,720
What would that.

70
00:04:50,730 --> 00:04:51,060
Yeah.

71
00:04:51,240 --> 00:04:57,090
R and w and guess what it is here 110.

72
00:04:57,090 --> 00:05:06,270
And here we have an octal number of six and it's going to be guess what the read and write, read and

73
00:05:06,270 --> 00:05:07,740
write permission.

74
00:05:16,250 --> 00:05:23,780
And lastly, our W X, which is going to be one, one, one and seven, which is going to be this will

75
00:05:23,780 --> 00:05:25,400
have all the permissions it has.

76
00:05:25,400 --> 00:05:30,470
So read, write and execute permission.

77
00:05:30,800 --> 00:05:39,350
So Oakdale Mod takes the Oakdale permissions and a list three of them in order to in order for the three

78
00:05:39,350 --> 00:05:48,290
security levels user group and everyone so this is the Oakdale mod value here represents six six.

79
00:05:49,090 --> 00:05:50,020
Nine.

80
00:05:51,370 --> 00:05:57,040
Uh, six, six four, uh, which is the represents the read and write permissions for the user.

81
00:05:57,040 --> 00:05:59,470
Actually, let me write that nicer.

82
00:06:00,300 --> 00:06:00,870
Here.

83
00:06:01,230 --> 00:06:07,370
So in this case, six, six and four.

84
00:06:07,380 --> 00:06:08,310
So.

85
00:06:09,560 --> 00:06:10,850
The six year.

86
00:06:10,850 --> 00:06:17,090
Remember the six year represents read and write permissions for the user.

87
00:06:17,090 --> 00:06:22,550
So you as you remember in previous lectures, the first is user group and everyone else.

88
00:06:22,550 --> 00:06:25,850
So here the six for user.

89
00:06:28,200 --> 00:06:35,000
The user and it's going to be read and write permissions to user and for the group.

90
00:06:35,110 --> 00:06:37,170
This this is the same for the group here.

91
00:06:37,490 --> 00:06:38,640
So same for the group.

92
00:06:39,120 --> 00:06:42,960
The group also has the read and write permissions and.

93
00:06:44,060 --> 00:06:44,990
The for.

94
00:06:45,470 --> 00:06:47,000
The for is everyone else.

95
00:06:47,000 --> 00:06:47,960
Which is the.

96
00:06:47,990 --> 00:06:52,880
Everyone else can only read this file and not write delete or execute it.

97
00:06:52,910 --> 00:06:53,840
So that's it.

98
00:06:55,180 --> 00:07:02,200
So now that you know about the octal mode permissions, the mask value you mask value becomes even more

99
00:07:02,200 --> 00:07:02,860
confusing.

100
00:07:02,860 --> 00:07:07,270
So the octal mode here actually let me write that down here.

101
00:07:07,270 --> 00:07:09,070
Yeah, the octal mode.

102
00:07:10,260 --> 00:07:14,900
Shown for the default mask on my Linux system is 0 to 2.

103
00:07:15,000 --> 00:07:17,580
You in your system it might be zero 0 to 2.

104
00:07:17,640 --> 00:07:18,840
So it's all the same actually.

105
00:07:18,840 --> 00:07:23,340
So but the file I created, I had an octal permission of 644.

106
00:07:23,940 --> 00:07:26,190
So how did that happen?

107
00:07:26,190 --> 00:07:38,010
So here actually, uh, ls la So let's clear by, by meaning that, uh, 644.

108
00:07:38,100 --> 00:07:41,880
I just wanted to show you here, So let's actually copy this.

109
00:07:46,210 --> 00:07:46,840
Yeah.

110
00:07:47,020 --> 00:07:54,160
And here, as you can see here, this is this means our file is file the regular file.

111
00:07:54,160 --> 00:07:57,340
And here, let's actually make it a bit look nicer.

112
00:07:58,600 --> 00:08:02,340
We don't need this information now and here.

113
00:08:02,350 --> 00:08:06,790
So let's turn this onto binary and octal number.

114
00:08:07,350 --> 00:08:11,490
So turning this into binary and octal number.

115
00:08:11,490 --> 00:08:13,620
So here it's going to be zero.

116
00:08:13,620 --> 00:08:15,000
Actually, we don't need that either.

117
00:08:15,030 --> 00:08:18,750
So this is just a file representation that it's file or symbolic link.

118
00:08:18,750 --> 00:08:21,300
So you learn that actually you learned that in previous lectures.

119
00:08:21,300 --> 00:08:25,440
If you don't remember, just go back to previous lecture and come back here later.

120
00:08:25,440 --> 00:08:26,520
So here.

121
00:08:26,760 --> 00:08:28,200
RW Remember?

122
00:08:28,380 --> 00:08:29,970
RW six, right.

123
00:08:32,420 --> 00:08:33,260
Six.

124
00:08:35,960 --> 00:08:36,260
Actually.

125
00:08:36,260 --> 00:08:36,560
Yeah.

126
00:08:36,590 --> 00:08:37,400
Six.

127
00:08:39,020 --> 00:08:42,410
Are null null is going to be for.

128
00:08:43,520 --> 00:08:44,240
And.

129
00:08:45,540 --> 00:08:48,780
For here and here we would also have.

130
00:08:50,630 --> 00:08:55,700
In the binary representation is going to be our W is going to be 110.

131
00:08:57,420 --> 00:08:59,000
One here.

132
00:08:59,040 --> 00:09:01,690
11010 and 110 here.

133
00:09:01,710 --> 00:09:03,300
That's it, right?

134
00:09:03,300 --> 00:09:04,890
It's actually not that complicated.

135
00:09:04,890 --> 00:09:05,490
Right?

136
00:09:05,490 --> 00:09:06,300
So.

137
00:09:09,290 --> 00:09:11,930
But here, 0 to 2.

138
00:09:12,890 --> 00:09:15,220
Here you will understand all of this here.

139
00:09:15,230 --> 00:09:19,220
So the umask value is just the mask.

140
00:09:19,220 --> 00:09:23,870
So it masks out the permissions you don't want to give to the security level.

141
00:09:23,870 --> 00:09:32,990
So now we have to dive into some octal arithmetic to figure out the rest of the story so the mask value

142
00:09:32,990 --> 00:09:37,670
is subtracted from the full permission set from an object.

143
00:09:37,670 --> 00:09:40,910
So the full permission here is seven seven.

144
00:09:40,910 --> 00:09:41,330
Right.

145
00:09:41,330 --> 00:09:42,940
So the full permission.

146
00:09:42,950 --> 00:09:44,300
The full permission.

147
00:09:44,300 --> 00:09:48,290
Full permission is seven, seven, seven.

148
00:09:48,290 --> 00:09:48,770
Right.

149
00:09:48,770 --> 00:09:49,820
Actually, yeah.

150
00:09:49,820 --> 00:09:54,500
We can also use this arrow to look it nicer like this.

151
00:09:54,500 --> 00:09:55,760
And here.

152
00:09:59,090 --> 00:09:59,570
Here.

153
00:09:59,600 --> 00:10:00,170
That's it.

154
00:10:00,200 --> 00:10:01,460
It looks nicer, right?

155
00:10:01,550 --> 00:10:06,170
So the full permission is seven, seven, seven, right.

156
00:10:07,720 --> 00:10:08,350
So.

157
00:10:08,980 --> 00:10:09,700
And.

158
00:10:11,460 --> 00:10:14,670
Actually as and read and write permission.

159
00:10:14,670 --> 00:10:15,960
We also have the full permission.

160
00:10:15,960 --> 00:10:21,510
I'd say it's kind of full permission here, but uh, six, six, six is the read for read write permission

161
00:10:21,510 --> 00:10:28,860
for all but for directories is seven, seven, seven, which is read, write and execute permission

162
00:10:28,860 --> 00:10:29,700
for all to use.

163
00:10:29,700 --> 00:10:32,670
In this example, the file starts out with a permission.

164
00:10:32,670 --> 00:10:34,110
Six, six, six.

165
00:10:34,140 --> 00:10:47,160
The starts starts with six, six six which is which is read and write permissions for all.

166
00:10:47,190 --> 00:10:48,750
Read and write permissions for all.

167
00:10:48,750 --> 00:10:50,880
So let's actually mention that down here.

168
00:10:53,380 --> 00:10:55,120
Six, six, six.

169
00:10:55,330 --> 00:10:57,400
So which is read and write permissions for all.

170
00:10:57,550 --> 00:11:07,000
But for directories it's seven, seven, seven starts file for file.

171
00:11:07,700 --> 00:11:09,440
It's six, six, six.

172
00:11:11,160 --> 00:11:17,580
And full directories start with.

173
00:11:19,120 --> 00:11:20,750
The directory.

174
00:11:20,770 --> 00:11:22,940
Is it what I said?

175
00:11:22,960 --> 00:11:24,910
The seven, seven, seven.

176
00:11:27,610 --> 00:11:28,200
Here.

177
00:11:28,540 --> 00:11:29,080
That's it.

178
00:11:32,950 --> 00:11:33,520
So.

179
00:11:34,870 --> 00:11:37,470
Use in this example, the file starts out.

180
00:11:37,470 --> 00:11:39,790
So as you remember, we created a file, right?

181
00:11:39,810 --> 00:11:40,740
My new file.

182
00:11:40,740 --> 00:11:47,520
So the file starts with a six, six, six and the mask 022 is applied.

183
00:11:47,730 --> 00:11:51,330
So leaving a permission 644.

184
00:11:51,330 --> 00:11:53,760
So you will now understand all of this.

185
00:11:53,760 --> 00:11:55,500
So six, six, six.

186
00:11:55,500 --> 00:11:55,860
Right.

187
00:11:55,860 --> 00:11:57,240
This starts with the file.

188
00:11:57,240 --> 00:12:06,960
And if you apply 022, we need to subtract that 022 from 666 and it's going to be what, the 644.

189
00:12:07,020 --> 00:12:12,540
And that's the all the logic with our new mask file.

190
00:12:14,660 --> 00:12:15,950
And here.

191
00:12:17,300 --> 00:12:17,640
Lexicon.

192
00:12:17,660 --> 00:12:18,710
644.

193
00:12:19,770 --> 00:12:27,300
And we can also do, for example, our let's change our u-mask file, for example, U-mask.

194
00:12:29,370 --> 00:12:32,760
You mask 0 to 6.

195
00:12:32,880 --> 00:12:44,490
And here you can also actually the mask value is normally set in the Etsy profile cat Etsy profile and.

196
00:12:46,430 --> 00:12:46,910
At here.

197
00:12:47,000 --> 00:12:53,750
One just read here and as you can see here, the umask value is usually set in the UTC profile startup

198
00:12:53,750 --> 00:12:54,560
file.

199
00:12:56,160 --> 00:12:56,690
Here.

200
00:12:59,650 --> 00:13:02,780
Uh, and you will learn about this file in later lectures.

201
00:13:03,050 --> 00:13:06,500
You can specify the different default umask settings using the UMS command.

202
00:13:06,500 --> 00:13:11,450
So for example, you mask, you mask 0 to 6 and let's check the mask.

203
00:13:11,450 --> 00:13:15,560
Now you you mask and pouch.

204
00:13:15,590 --> 00:13:19,880
New file to ls and here.

205
00:13:23,600 --> 00:13:23,980
Apps.

206
00:13:24,110 --> 00:13:27,830
Now here ls a my file.

207
00:13:28,080 --> 00:13:28,310
Oops.

208
00:13:28,340 --> 00:13:30,320
No, my file new file.

209
00:13:30,360 --> 00:13:33,200
To and here.

210
00:13:33,620 --> 00:13:35,090
As you can see.

211
00:13:35,210 --> 00:13:39,290
Let's actually copy that down here and see what changed.

212
00:13:39,320 --> 00:13:41,060
It's actually something changed.

213
00:13:41,060 --> 00:13:41,540
Right?

214
00:13:41,550 --> 00:13:42,830
Right here.

215
00:13:43,310 --> 00:13:44,840
Let's copy this.

216
00:13:45,170 --> 00:13:46,730
Paste it here.

217
00:13:47,730 --> 00:13:58,770
So in this case actually it's actually mention it that our default def here your mask mask when we executed

218
00:13:58,770 --> 00:14:02,480
this command and created this file, we our mask was 0 to 2.

219
00:14:02,490 --> 00:14:02,980
Right.

220
00:14:03,000 --> 00:14:03,810
As you remember.

221
00:14:04,940 --> 00:14:06,020
And here.

222
00:14:06,970 --> 00:14:11,770
So our one, two, three, and one, two, three.

223
00:14:16,880 --> 00:14:17,360
Here.

224
00:14:19,550 --> 00:14:25,010
So in this case, when we created this file, our mask number was, what was it?

225
00:14:25,520 --> 00:14:26,510
0 to 6.

226
00:14:26,510 --> 00:14:27,650
0 to 6.

227
00:14:28,250 --> 00:14:31,550
And you will now understand it more deeper here.

228
00:14:31,700 --> 00:14:32,600
So.

229
00:14:33,110 --> 00:14:34,730
RW What was it?

230
00:14:35,090 --> 00:14:36,230
Six Right.

231
00:14:36,470 --> 00:14:39,350
So six is 110.

232
00:14:39,650 --> 00:14:44,420
And then our minus minus our new null is four, right?

233
00:14:44,450 --> 00:14:46,330
100.

234
00:14:46,340 --> 00:14:50,390
And lastly, we have no permission at all.

235
00:14:50,390 --> 00:14:52,760
And here it will have what?

236
00:14:52,790 --> 00:14:54,020
000.

237
00:14:54,320 --> 00:14:59,690
And in this case, our default file permission is going to be what?

238
00:15:01,970 --> 00:15:02,300
Yeah.

239
00:15:02,300 --> 00:15:03,230
I'm waiting for you.

240
00:15:06,920 --> 00:15:09,800
Three, two, one.

241
00:15:09,830 --> 00:15:10,850
It's going away.

242
00:15:11,710 --> 00:15:13,000
110.

243
00:15:13,690 --> 00:15:14,620
Six.

244
00:15:17,160 --> 00:15:19,260
104.

245
00:15:20,450 --> 00:15:21,410
And zero.

246
00:15:22,870 --> 00:15:23,950
And zero.

247
00:15:24,220 --> 00:15:25,210
That's it.

248
00:15:25,210 --> 00:15:27,160
That's as easy as that.

249
00:15:27,460 --> 00:15:28,330
So.

250
00:15:29,690 --> 00:15:30,860
Now let's actually.

251
00:15:30,860 --> 00:15:39,140
So this, this, uh, that this examples was all executed on a files and let's try with the directories

252
00:15:39,140 --> 00:15:45,170
here right as you remember files and directories default permission the full permission is different.

253
00:15:45,170 --> 00:15:49,310
So file for file is 666 and the full directory is 777.

254
00:15:49,310 --> 00:15:58,070
So when the, when we set the value to 0 to 6, the default file permissions become 640.

255
00:15:58,100 --> 00:15:58,940
This is for file.

256
00:15:58,940 --> 00:16:05,540
So the new file is now restricted to read only for the group members and everyone else on the system

257
00:16:05,540 --> 00:16:07,850
has no permissions to the file.

258
00:16:07,850 --> 00:16:12,800
So the UMass command also applies for making new directories here.

259
00:16:12,800 --> 00:16:25,400
So you mask m maker or not umass care clear so make dir make maker my new directory or my new dear.

260
00:16:25,400 --> 00:16:27,530
It's okay and ls.

261
00:16:28,500 --> 00:16:28,920
L.

262
00:16:30,830 --> 00:16:34,740
My new dear lSl.

263
00:16:36,120 --> 00:16:36,720
L a.

264
00:16:40,390 --> 00:16:40,990
Here.

265
00:16:42,470 --> 00:16:45,370
Uh, don't we have my new directory here?

266
00:16:45,830 --> 00:16:46,130
Oops.

267
00:16:46,140 --> 00:16:46,690
Sorry.

268
00:16:52,640 --> 00:16:54,550
My new file, my dear.

269
00:16:54,560 --> 00:16:55,670
My new.

270
00:17:03,960 --> 00:17:04,590
Yeah.

271
00:17:04,830 --> 00:17:05,980
As you can see, this is, uh.

272
00:17:06,030 --> 00:17:06,840
This is our.

273
00:17:06,840 --> 00:17:07,980
My dear.

274
00:17:07,980 --> 00:17:11,910
And let's copy that out and see what actually happened here.

275
00:17:13,340 --> 00:17:17,690
For ideas or examples.

276
00:17:24,300 --> 00:17:24,960
Here.

277
00:17:24,960 --> 00:17:27,810
So let's so this d here.

278
00:17:27,810 --> 00:17:29,850
I will explain all of this right now.

279
00:17:29,850 --> 00:17:31,200
So this here d here.

280
00:17:31,200 --> 00:17:35,280
As you remember in previous lectures, this d means that it's a directory.

281
00:17:35,280 --> 00:17:36,210
So we don't need that.

282
00:17:36,210 --> 00:17:38,640
We know, we already know that it's a directory.

283
00:17:38,640 --> 00:17:39,070
So.

284
00:17:39,110 --> 00:17:42,000
RW Remember seven right?

285
00:17:42,840 --> 00:17:48,720
So mask was for 0 to 6 Again, let's check the mask.

286
00:17:49,350 --> 00:17:50,040
Clear.

287
00:17:50,040 --> 00:17:51,240
You mask.

288
00:17:52,410 --> 00:17:55,830
You mask and the second is a 0 to 6.

289
00:17:58,660 --> 00:17:59,500
Here.

290
00:18:02,270 --> 00:18:09,980
0 to 6 and the mask is going to be 0 to 6 here, as you can see here, the 0 to 6.

291
00:18:09,980 --> 00:18:12,560
And it's going to so.

292
00:18:12,560 --> 00:18:13,480
RW seven.

293
00:18:13,490 --> 00:18:14,600
RW six.

294
00:18:14,990 --> 00:18:20,570
RW X is going to seven, which is 111, then our X.

295
00:18:22,170 --> 00:18:23,160
101.

296
00:18:23,970 --> 00:18:26,340
And 00X here.

297
00:18:27,120 --> 00:18:27,900
Just the one.

298
00:18:28,410 --> 00:18:29,820
So 001.

299
00:18:29,820 --> 00:18:34,920
And let's turn that into octal 111 is seven.

300
00:18:36,600 --> 00:18:38,490
Five and.

301
00:18:39,550 --> 00:18:40,060
Zero.

302
00:18:41,020 --> 00:18:42,700
Yeah, that's it.

303
00:18:45,590 --> 00:18:51,880
As you can see here, because a default permission for a as you can see, these are the complete different

304
00:18:51,890 --> 00:18:52,160
options.

305
00:18:52,160 --> 00:18:52,370
Right.

306
00:18:52,430 --> 00:18:53,710
And you will understand now.

307
00:18:53,750 --> 00:19:00,140
So because a default permissions for a directory are seven, seven, seven and the resulting permission

308
00:19:00,140 --> 00:19:03,040
from the umask are different from the use of a new file.

309
00:19:03,050 --> 00:19:12,740
The 0026 you mask value is subtracted from the zero zero subtracted from the 777 leaving the seven.

310
00:19:13,040 --> 00:19:15,380
Actually it was not one here.

311
00:19:15,380 --> 00:19:16,610
So sorry for that.

312
00:19:16,610 --> 00:19:17,570
It's one.

313
00:19:18,110 --> 00:19:21,560
So the directory permission setting here.

314
00:19:21,620 --> 00:19:23,630
Actually, let's prove that.

315
00:19:24,390 --> 00:19:25,530
So here.

316
00:19:29,770 --> 00:19:31,600
Now we're going to seven, seven, seven.

317
00:19:31,600 --> 00:19:35,290
And after that we're going to enter 0 to 6.

318
00:19:35,290 --> 00:19:39,070
And here we will have.

319
00:19:40,230 --> 00:19:44,570
Seven, five and one.

320
00:19:44,580 --> 00:19:45,540
It's proven.
