1
00:00:00,000 --> 00:00:01,710
In this lesson we're going to go over

2
00:00:01,710 --> 00:00:03,423
Configuring Account Profiles.

3
00:00:04,680 --> 00:00:06,330
In many cases individual users

4
00:00:06,330 --> 00:00:07,980
will have their own preferences

5
00:00:07,980 --> 00:00:09,660
or unique needs when it comes to

6
00:00:09,660 --> 00:00:11,340
working in a Linux environment.

7
00:00:11,340 --> 00:00:13,560
So we're going to configure a users profile to ensure

8
00:00:13,560 --> 00:00:15,540
that they have customized environments to work in

9
00:00:15,540 --> 00:00:17,280
that fits their requirements.

10
00:00:17,280 --> 00:00:21,720
The first file we're going to investigate is the .bashrc file.

11
00:00:21,720 --> 00:00:24,963
This file is used to customized batch shell environments.

12
00:00:25,860 --> 00:00:29,223
This file is located in the root directory of each user.

13
00:00:30,150 --> 00:00:31,800
So let's check it out real quick,

14
00:00:33,187 --> 00:00:35,373
.bashrc.

15
00:00:36,750 --> 00:00:38,010
Again, this file is used

16
00:00:38,010 --> 00:00:40,083
to customize the shell configurations.

17
00:00:41,040 --> 00:00:43,590
If you look under the user specific aliases

18
00:00:43,590 --> 00:00:45,990
you'll see that their area is blank.

19
00:00:45,990 --> 00:00:49,650
Now, an alias is a way to customize commands.

20
00:00:49,650 --> 00:00:52,380
Now, if every time you wanted to remove a file,

21
00:00:52,380 --> 00:00:54,000
you want to make sure you were prompted

22
00:00:54,000 --> 00:00:56,910
just to make sure that was what you intended to do.

23
00:00:56,910 --> 00:00:59,410
You would input that information there on aliases.

24
00:01:00,360 --> 00:01:03,360
Now, if we take a look at the roots directory

25
00:01:03,360 --> 00:01:06,270
we'll see that under it's bashrc file

26
00:01:06,270 --> 00:01:07,950
that he has the alias set up that way.

27
00:01:07,950 --> 00:01:09,930
because since root is so powerful, you don't

28
00:01:09,930 --> 00:01:13,710
want a scenario where you remove files accidentally.

29
00:01:13,710 --> 00:01:15,260
So let's look at it real quick.

30
00:01:19,290 --> 00:01:22,680
So now, see the aliases are configured here.

31
00:01:22,680 --> 00:01:26,490
So the remove command automatically adds the option, i,

32
00:01:26,490 --> 00:01:28,950
again, which prompts the user to make sure

33
00:01:28,950 --> 00:01:31,110
that that's what they intend to do.

34
00:01:31,110 --> 00:01:33,460
Same thing with the copy, and the move command.

35
00:01:34,590 --> 00:01:36,203
So I'm going to clear this out here.

36
00:01:37,290 --> 00:01:39,000
The next file we're going to investigate is

37
00:01:39,000 --> 00:01:41,073
the bash underscore profile.

38
00:01:42,330 --> 00:01:45,270
This is used to set system wide variables

39
00:01:45,270 --> 00:01:47,550
slightly different from the .rc file

40
00:01:47,550 --> 00:01:50,250
because that's used for bash only.

41
00:01:50,250 --> 00:01:52,470
Now this sets all type of variables.

42
00:01:52,470 --> 00:01:54,263
So let's check this out really quick.

43
00:01:59,820 --> 00:02:02,850
The biggest thing to note here is the path variable.

44
00:02:02,850 --> 00:02:06,420
And this is used to let the environment know where

45
00:02:06,420 --> 00:02:08,820
are we going to store all of our commands.

46
00:02:08,820 --> 00:02:12,750
So Linux needs to know, when we type into command, say,

47
00:02:12,750 --> 00:02:15,870
remove or delete list, anything like that,

48
00:02:15,870 --> 00:02:18,900
it needs to know where these commands are,

49
00:02:18,900 --> 00:02:20,550
so it has a reference to what to do

50
00:02:20,550 --> 00:02:21,900
when those commands pop up.

51
00:02:22,860 --> 00:02:25,110
Now the next directory we're going to go through

52
00:02:25,110 --> 00:02:27,750
is the etc skel.

53
00:02:27,750 --> 00:02:29,400
Every time a user's added

54
00:02:29,400 --> 00:02:31,830
the system automatically copies all the contents

55
00:02:31,830 --> 00:02:34,803
from the etc skel to the user's new home directory.

56
00:02:35,700 --> 00:02:38,280
So whatever files we have in there will be copied.

57
00:02:38,280 --> 00:02:40,253
So we're going to check that out really quick.

58
00:02:46,260 --> 00:02:48,090
So whenever I add a new user, you'll see

59
00:02:48,090 --> 00:02:50,910
that all these files will be added to their home directory.

60
00:02:50,910 --> 00:02:53,793
I'm going to add a file, to the etc porter,

61
00:02:55,003 --> 00:02:56,673
let me have policies2.

62
00:03:03,000 --> 00:03:04,550
Okay, now let's add a new user.

63
00:03:07,738 --> 00:03:09,071
useradd mjordan.

64
00:03:18,360 --> 00:03:23,360
All right, so now let's look at mjordan's home directory

65
00:03:23,430 --> 00:03:24,980
and see if it copied correctly.

66
00:03:32,550 --> 00:03:33,383
There we go.

67
00:03:33,383 --> 00:03:36,813
So now we see policies2, and also policies.

68
00:03:38,670 --> 00:03:41,130
Of course make sure everything else copied.

69
00:03:41,130 --> 00:03:42,640
We'll add the option a

70
00:03:43,830 --> 00:03:45,880
to make sure we see all the hidden files.

71
00:03:47,160 --> 00:03:47,993
And there we go.

72
00:03:49,470 --> 00:03:50,490
So just for a little practice

73
00:03:50,490 --> 00:03:53,490
we're going to go ahead and just add this user to a department.

74
00:03:55,860 --> 00:04:00,120
I'm going to add to our graphics department.

75
00:04:00,120 --> 00:04:02,793
Remember add group, what that stands for.

76
00:04:11,010 --> 00:04:13,380
Now we're just going to look at our group file.

77
00:04:15,090 --> 00:04:16,743
Make sure he in there.

78
00:04:18,000 --> 00:04:19,019
Okay, we can see at the bottom

79
00:04:19,019 --> 00:04:21,510
on the graphics department, mjordan is there.

80
00:04:21,510 --> 00:04:22,503
Still practice,

81
00:04:26,010 --> 00:04:27,210
while we're at it we're go ahead and

82
00:04:29,100 --> 00:04:30,513
put some information about,

83
00:04:39,600 --> 00:04:43,260
okay, again we go to the etc/password

84
00:04:43,260 --> 00:04:44,643
see all new users.

85
00:04:48,000 --> 00:04:49,950
That was created successfully.

86
00:04:49,950 --> 00:04:50,940
One more thing while we're at it

87
00:04:50,940 --> 00:04:52,690
we'll go ahead and set the password

88
00:04:53,700 --> 00:04:54,783
for Mr Jordan here.

89
00:05:01,470 --> 00:05:03,240
All right, had to make sure we had a long password,

90
00:05:03,240 --> 00:05:04,540
so it wouldn't fuss at us.

91
00:05:06,330 --> 00:05:07,860
That wraps things up.

92
00:05:07,860 --> 00:05:10,860
This was a quick example of how to configure user accounts

93
00:05:10,860 --> 00:05:15,420
and understanding the .bashrc batchprofile files.

94
00:05:15,420 --> 00:05:17,850
Again, these are used to create system

95
00:05:17,850 --> 00:05:20,130
and environment wide variables for users

96
00:05:20,130 --> 00:05:21,780
whenever they log into the system.

97
00:05:21,780 --> 00:05:23,580
And I'll see you in the next lesson.

