We have just explored how to create new users using social comment as user ad and using good correspondent
use of DLC amount.
We have deleted users.
No, let me explain you how you could create a new user using a good command ad user and also afterwards.
I'll tell you how to create new groups and assign users to some custom groups.
Because by default, Lenos greets a group with the same name as username Eukaryote.
All right, let's not enter at the user command.
And next day, let's type a user name of the user.
I want to create.
And here you'll see some brons.
First of all, you'll see that new user was added after that new group, Bogdan was created.
And here in parentheses, you'll see actually I did for specific user because every user has specific
idea.
Next, do you see that the new user, Bogdan, was assigned to Bogdan Grube afterwords.
New home directory was created automatically and path to this directory is here.
Sless Home Mogadon.
And next, after this step your files where corporate into the home directory for this user.
And basically here after this command, you'll see the same three files that we have seen in the previous
lecture.
After user add comment.
And here we are immediately prompted to create new password for this user.
And you see that this comment at the user is actually interactive conversation for creation of the new
user.
All right, let's enter Hannu password again.
Me, Mitchell Sampson, Grilli, Straughn, one, two, three, or a type of one, two, three.
And you'll see that password was updated successfully afterwards.
You could set such parameters as a full name, rule number, work phone, home phone Özer.
And if this information is correct or simply type.
Yes and press enter or just press enter.
And now we're all set.
And you'll use our bogden was successfully created.
Let's verify that.
Let's clear terminal.
And first, let's have a look at contents of the home directory.
And here I see new folder Bogdan and it's a good sign.
It seems that this new home directory was created automatically.
Let's look at the contents of this directory and let's add here.
Options are Desh L.A. and I'll see three hidden files.
Best logout, best RLC and profile.
And notice user name and group for those three files.
You'll see the owner and group for all files is set to new user Moghadam.
And that means that this user has full access to those files.
Actually, here you see permissions for every file.
And this user, Bogdan, is able to read or write but not execute ARS or group.
Users are able only to read those files and remain.
Users are also able only to read those files.
And that means that any ARS or users will want to be able to modify those files.
Like best logout, best RC and profile.
All right.
That's how this home directory looks like for this particular newly created user.
Let me know.
Clear terminal and enter full of Inkerman.
Got it.
DC slash boss WDM last press enter.
And here in output of this command at the very end, I'll see information about newly created user.
Here I see user name.
Here is user I.D. does one thousand.
Next comes a path to home directory for this particular user.
And finally you see default shell for this user.
And here in this case, you'll see that this default shell was set to bash Shell.
And that is a difference between ad user and user ad command.
We have seen that in user ad and default.
Shell is set to see H.
But when you create new user using add user command, then default shell will be set to bash.
And the reason for that is that initial default configuration settings are located in Oz or file.
If you use at user command.
Let me show you a location of this file.
Let me clear terminal and the type but can't.
It is C slash.
Add the user breath step and you'll see that file name will be out completed to add user dot com.
Let's go look at the contents of this configuration file.
And here in this output, let's find the setting for Basche Shell.
It should be somewhere at the beginning.
And yes, here was the setting D shell equal to be best.
And that means that the default shell for all users that are created using add user comment will be
set to best.
And actually you're able to modify the disintegration of file.
Same as we did with configuration file for user add comment if you want, of course.
All right.
That's how this configuration file looks like.
And that's how weak of just created new user using add user comment.
Great.
Let's not try to login as bogdana user.
Let's type as you dash.
And next comes Mogadon.
Please gap that Desh stands for desk option or Desh L or does dash logging option.
And with this option we will logging into the home directory for particular user Lesperance anther type
B double your D.
And yes.
Now I'm inside of the home directory for Mogadon User.
And here you'll see that the command prompt was changed.
And here now I see new user Mogadon if I enter.
Who am I?
I'll see.
Same output here.
Right.
This is how we were able to look in ONDAR custom user that we just created.
And of course now I am able to create Asama files in this home directory.
Let's create new file.
Let's say one to Extreme and Lesley's contents of home directory and I'll see newly created file and
you'll see that the owner of this file is of course, Mogadon.
And here you'll see Mogadon because it does the name of the group that was automatically created for
new user Bogdanowicz.
And here up our missiles for this newly created file.
All right.
That's how we are able to interact with system under custom user.
And next, let's talk a bit about permissions for files.
And in the next lecture, I'll try to create new file as a root user and afterwards try to modify this
file under a bug backdowns account.
Let's write it in the next lecture by.