In this lesson we're going to go over
Configuring Account Profiles.
In many cases individual users
will have their own preferences
or unique needs when it comes to
working in a Linux environment.
So we're going to configure a users profile to ensure
that they have customized environments to work in
that fits their requirements.
The first file we're going to investigate is the .bashrc file.
This file is used to customized batch shell environments.
This file is located in the root directory of each user.
So let's check it out real quick,
.bashrc.
Again, this file is used
to customize the shell configurations.
If you look under the user specific aliases
you'll see that their area is blank.
Now, an alias is a way to customize commands.
Now, if every time you wanted to remove a file,
you want to make sure you were prompted
just to make sure that was what you intended to do.
You would input that information there on aliases.
Now, if we take a look at the roots directory
we'll see that under it's bashrc file
that he has the alias set up that way.
because since root is so powerful, you don't
want a scenario where you remove files accidentally.
So let's look at it real quick.
So now, see the aliases are configured here.
So the remove command automatically adds the option, i,
again, which prompts the user to make sure
that that's what they intend to do.
Same thing with the copy, and the move command.
So I'm going to clear this out here.
The next file we're going to investigate is
the bash underscore profile.
This is used to set system wide variables
slightly different from the .rc file
because that's used for bash only.
Now this sets all type of variables.
So let's check this out really quick.
The biggest thing to note here is the path variable.
And this is used to let the environment know where
are we going to store all of our commands.
So Linux needs to know, when we type into command, say,
remove or delete list, anything like that,
it needs to know where these commands are,
so it has a reference to what to do
when those commands pop up.
Now the next directory we're going to go through
is the etc skel.
Every time a user's added
the system automatically copies all the contents
from the etc skel to the user's new home directory.
So whatever files we have in there will be copied.
So we're going to check that out really quick.
So whenever I add a new user, you'll see
that all these files will be added to their home directory.
I'm going to add a file, to the etc porter,
let me have policies2.
Okay, now let's add a new user.
useradd mjordan.
All right, so now let's look at mjordan's home directory
and see if it copied correctly.
There we go.
So now we see policies2, and also policies.
Of course make sure everything else copied.
We'll add the option a
to make sure we see all the hidden files.
And there we go.
So just for a little practice
we're going to go ahead and just add this user to a department.
I'm going to add to our graphics department.
Remember add group, what that stands for.
Now we're just going to look at our group file.
Make sure he in there.
Okay, we can see at the bottom
on the graphics department, mjordan is there.
Still practice,
while we're at it we're go ahead and
put some information about,
okay, again we go to the etc/password
see all new users.
That was created successfully.
One more thing while we're at it
we'll go ahead and set the password
for Mr Jordan here.
All right, had to make sure we had a long password,
so it wouldn't fuss at us.
That wraps things up.
This was a quick example of how to configure user accounts
and understanding the .bashrc batchprofile files.
Again, these are used to create system
and environment wide variables for users
whenever they log into the system.
And I'll see you in the next lesson.