1
00:00:04,520 --> 00:00:07,010
I hope you were able easily correct this challenge.

2
00:00:07,310 --> 00:00:08,390
Let's not do that together.

3
00:00:08,750 --> 00:00:12,680
Let's first expert, numerable expert my on the Oscorp name.

4
00:00:13,030 --> 00:00:15,080
And, well, you will be in my case.

5
00:00:16,239 --> 00:00:19,840
No, let's create new file called name dot s h.

6
00:00:20,390 --> 00:00:23,180
Deitsch name dot s h.

7
00:00:23,690 --> 00:00:26,460
And now let's edit it using nano ed nano.

8
00:00:26,840 --> 00:00:28,050
Name Dot s h.

9
00:00:28,520 --> 00:00:30,920
Here on the first line will be a hash sign.

10
00:00:30,980 --> 00:00:31,610
Next columns.

11
00:00:31,670 --> 00:00:32,509
Exclamation mark.

12
00:00:32,570 --> 00:00:35,210
And afterwards we'll be path to correspondent.

13
00:00:35,360 --> 00:00:37,000
As a getable that will allow.

14
00:00:37,190 --> 00:00:39,490
This is a getable file built best.

15
00:00:40,130 --> 00:00:43,570
And on next line I'll simply use echo Dola.

16
00:00:43,580 --> 00:00:46,280
Assign my name like this.

17
00:00:46,670 --> 00:00:47,360
Very simple.

18
00:00:47,960 --> 00:00:53,100
Let's save this file and no, let's list files and folders here in home directory.

19
00:00:53,290 --> 00:00:58,440
Unless Daschle and I see this newly created file name dot s h.

20
00:00:58,880 --> 00:01:01,190
But now this file is not executable.

21
00:01:01,340 --> 00:01:02,980
You see here those permissions.

22
00:01:03,620 --> 00:01:09,560
I am able to read or write this file as all know and or or users in the same group.

23
00:01:09,560 --> 00:01:12,410
Bowdon are also able to read and write file.

24
00:01:12,890 --> 00:01:17,510
All the remaining users in AASA groups are able only to read this file.

25
00:01:18,080 --> 00:01:21,140
Now let's add execution permission for this file.

26
00:01:21,470 --> 00:01:24,290
And I could do that using c h multicam end.

27
00:01:24,740 --> 00:01:29,510
And here I could use simply syntax plus X at execution of primatial.

28
00:01:30,020 --> 00:01:30,970
And next we'll come.

29
00:01:31,010 --> 00:01:32,330
Name of the file name.

30
00:01:32,390 --> 00:01:33,410
Dot s h.

31
00:01:33,900 --> 00:01:34,730
Let's press enter.

32
00:01:34,970 --> 00:01:35,720
Let's verify.

33
00:01:35,770 --> 00:01:36,590
Now promotions.

34
00:01:37,280 --> 00:01:41,060
And now you'll see that everyone is able to execute this file.

35
00:01:41,630 --> 00:01:45,400
If you don't want that, anyone else will be able to execute it.

36
00:01:45,650 --> 00:01:49,310
You could, of course, remove X for all the remaining users and leave.

37
00:01:49,370 --> 00:01:50,930
It's only for this user.

38
00:01:51,320 --> 00:01:52,700
For that you could use eyes.

39
00:01:52,700 --> 00:01:56,090
Are you Bloss X syntax thralls to remove X?

40
00:01:56,300 --> 00:01:57,670
Let me show you it actually quickly.

41
00:01:57,980 --> 00:02:00,120
Let's go back and remove execution.

42
00:02:00,330 --> 00:02:01,220
You shouldn't like this.

43
00:02:01,580 --> 00:02:06,620
And the next the less add plus X only for user like.

44
00:02:06,700 --> 00:02:10,600
So and now let's verify emissions and you'll see that.

45
00:02:10,610 --> 00:02:10,960
No.

46
00:02:11,230 --> 00:02:14,570
Only overall this file is able to execute it.

47
00:02:15,230 --> 00:02:16,040
Now let's run it.

48
00:02:16,490 --> 00:02:20,540
I could use eyes or absolute path to this file named as H.

49
00:02:20,660 --> 00:02:21,710
Or relative path.

50
00:02:22,250 --> 00:02:24,620
Let's use let's say relative path.

51
00:02:24,770 --> 00:02:26,120
Dot slash and.

52
00:02:26,180 --> 00:02:27,620
Name of the file name.

53
00:02:27,710 --> 00:02:28,550
Dot s h.

54
00:02:29,210 --> 00:02:31,420
And I see my name here in the terminal.

55
00:02:31,760 --> 00:02:34,200
That means that this script works correctly.

56
00:02:34,490 --> 00:02:38,690
And this creeped is able to get access to environment variables.

57
00:02:39,050 --> 00:02:41,480
Let's quickly have a look at the contents of the script.

58
00:02:42,320 --> 00:02:49,100
And here was this line that accesses my name variable that we created before with expert comment.

59
00:02:49,850 --> 00:02:50,210
All right.

60
00:02:50,510 --> 00:02:52,010
That's all for solution for this challenge.

61
00:02:52,070 --> 00:02:53,810
And this all actually for this section.

