Placeholder Image

Subtitles section Play video

  • please go to the line the computer guy dot com, in order to view schematics, code and Maur for the projects that you are learning about.

  • Welcome back.

  • So in today's video, I'm going to show you how to add users.

  • How do delete users, and then how to modify user profiles of doing things like changing passwords for user's?

  • Now, the important thing to understand in the Lenox World is that doing these types of tasks and athleticsworld Onley seem complicated because it's so much simpler than the Windows world.

  • So if your deal used to dealing with Windows administration, especially in an active directory environment, there are so many amazing things that you could do with user accounts in the Windows world, right?

  • And so when you go toe Lennox, you're expected to be able to do all those amazing things and Lennox, and then you think you just don't know how to do it, and then you get frustrated and then you give up.

  • The reality is that in the Lenox world, basically how users work, how groups work and how permissions work is a hell of a lot simpler than the Windows world.

  • So if you over.

  • Think it if you try to make it more complicated than it actually is, that is going to run you into problems.

  • So I'm going to show you how to use the ad user to command.

  • So basically, using the ad user command allows you to add users to the system.

  • I'm going to show you how to change passwords so had a change of your own password and how to change passwords for somebody else.

  • I want to show you something called the password file In the past.

  • Booed Pet Food file in the E T C.

  • Directory.

  • This excellent contains all of your user accounts so you can go there and see what users are in your Lennox system so you can make sure if they're there or if they need to be removed.

  • Um, I can show you how to use something called a C H f in the command.

  • So basically, what this is going to do is it's going to allow you to change the profile of the user within Lennox.

  • I'm going to show you something called User Maat.

  • We're not actually going to use user maat today.

  • User Maat is a nice little command allows you to do things like has a lock user account.

  • So that might be useful for you that I'm going to show you how to delete a user and then won the important things that cleanup task is.

  • I'm going to show you how to remove three user profile directory that is created when Lennox creates a profile to begin with.

  • This is one of those important things that again, this could become one of those maintenance issues where, when you create a user account Lennox it creates a folder for the profile in the Home Directory with all the profile information one of the weird things in the Lenox world kind of like not really sure why that happens, I suppose that there's a reason is that when you delete the user account, it doesn't even give you an option for deleting that profile directory s.

  • So you simply have to go and then actually remove the directory manually to make sure you don't get bogged up with a whole bunch of old user directories that aren't of any value anymore.

  • So that let's go to the computer and we'll show you how these commands work in the Lenox world.

  • And again, the important thing to remember here is that Lennox, when it comes to users, is a lot easier, a lot more simple than the Windows world.

  • So if you're running into problems, the issue most likely is is you're overthinking things, and so just try to roll it back of it.

  • Try, think about doing things a little bit more simply, and you'll most likely be able to figure out what you need to do.

  • So with that, let's go over to the machine and I'll show you how this works.

  • So here we are, at my a bunch of server again.

  • We're using 18.4 point three for this demonstration.

  • But add User has basically been the same for decades and will most likely be the same for another decade or two.

  • So you really shouldn't run into any issues if you're using a different version of the U Bahn to server operating system so that I'm not a log in a semi made account that I've been using is his account called Bob and the password is 123456 because that's what makes my life better well again on we get the normal screen.

  • So what I'm going to do is I'm gonna do clear to clear the screen so that we get back to a blank screen, eh?

  • So the first thing that I want to do here is I'm going to do an ad user.

  • So all I need to do is pseudo super user Duke.

  • So we need to escalate our privileges up to that roof level of dilated do things, and then we're going to pad user.

  • Nice.

  • Nice, simple command.

  • Nice.

  • Simple.

  • Lennox Command, you're going to add a user and the command is add user, you can't make it any more easy than that.

  • And we're going to add a user.

  • Let's say, Tim, we're gonna have the user 10 and then we're going to hit.

  • Enter.

  • Eso is going to ask us this right here.

  • We're asking for the password for Bob, so it is important when you're doing this, you're gonna be asked for passwords in different places.

  • And so you do have to keep in mind.

  • What password?

  • They're asking for something.

  • So for this, they're asking for my password.

  • And my password is 123456 en ERM So adding, adding Tim, it's created.

  • Tim created the directory for 10 so on so forth.

  • So it's here.

  • It's creating home directory.

  • So Thames Profile director is going to be home.

  • 10.

  • Then it's asking.

  • Now Inter knew you and ex password at this point.

  • It's now asking for the password for Tim.

  • What is Tim's past?

  • We're going to be and we're gonna make this simple.

  • 123456 I'm going to ask to retyped 123456 and we're going to hit in.

  • So from this point and asks us for some profile information now it is important here.

  • Depending on what you're doing with your particular server, you can leave this all blank.

  • None of the rest that matters.

  • The only thing that really matters is the user name and password.

  • That is what is actually useful for Lennox.

  • The rest of this is basically a little house keeping things.

  • So you know, if you're building the server on these user accounts or actual employees in your company, you may want to plug in information hair, but honestly, again, if this is simply a Web server, and you simply need a couple of user accounts in order to do a different type of maintenance tasks.

  • I would argue more or less to leave this blank, but we can do go here.

  • We could simply say, This is Tim Mick Coolio 10 9 Coolio That is his full name.

  • Then it's as going ask for his room number.

  • Make his room number to his phone number one one one hyphen to to to life in 3333 Home phone.

  • No merchant to 2-333 hyphens 4444 And in our other.

  • Hey, um, you know, whatever other information again, this is one thing.

  • If you do create a user account for things like service is something like that in this other here, you might actually want to just put a comment of Hey, this user account was created for email service is something like that, because that that could be useful again.

  • One thing you have to be remembering whenever you build a Lennox system, whenever you build anything for infrastructure, it's not about you.

  • Maintain you.

  • It's not about whether you can maintain it a year or two from now.

  • It's about when you leave the company or organization and somebody else has to come in behind you and figure out what the hell's going on.

  • Can they know what's going on?

  • So if you put a comment in here again for any kind of user account you're creating for service is that can make it there alive a hell of a lot easier.

  • Not to mention I'll just put this in there.

  • Not to mention that a lot of times you forget things that you don't think you're gonna forget.

  • So three years from now, when you come back to maintain this system, uh, having put your own notes there might actually make it a little more helpful for you to sew.

  • The other is just simply for a note thing we hit Enter.

  • Is this information correct?

  • Yes.

  • Andi said, play it.

  • Go back to the problem.

  • That's really Uh oh, there is.

  • There s o.

  • We do clear.

  • One of things we can look at now is we're gonna get something called the password file s O.

  • We can do them, so we're simply going to use them.

  • So I'm not doing pseudo them because I do not plan to edit the password file.

  • That's important thing.

  • Remember, pseudo vim will allow you edit the password file for a lot of these files by simply using him.

  • It will open it up as a read only.

  • And again, this is something that could be useful just to make sure you don't fat finger something if you If you open something as read, only then if nothing else and you know you can't screw it up.

  • All right?

  • So I'm gonna open up his read only eso forward slash forward slash is the root directory.

  • E T.

  • C.

  • Is the folder under route on.

  • Then there's a file called Past that P a s s w d.

  • Because, of course it iss they can't just make a password file.

  • Don't be ridiculous on then.

  • We're going on.

  • So we open this up.

  • Hey, hey.

  • We got a whole bunch of ever making here that probably looks like gobble to give to you.

  • But these are in fact, all of the user accounts that are currently on this Olynyk system, and it gives you some information about these accounts and again, one of things you'll notice is Damon been Insists games L P news, right.

  • All of these user accounts are used for specific service is in the Lenox operating system on.

  • So again, it is a good practice to think about that.

  • If you create a specific user account to do a specific task, it makes it harder for the system to be hacked right again.

  • You think about it with it with hacking.

  • And basically hackers will use all the permissions that are given to something.

  • Right.

  • So you give one user account a whole bucket permissions again, that whole thank you.

  • One user account route permissions to a server.

  • And then if a hacker can compromise that one route account, they basically owned the server.

  • Uh, the same is true with giving a user accounts lesser lesser permissions, right.

  • If you give one user account permission over FTP and permission over you know SMTP and permission over a number of different things that if a hacker can compromise that one account, then not only do they get access to FTP, but they also get access to SMTP and they might get access to my sequel and they might get access to enough things that they can then hack around and get access to the whole system.

  • So if you create specific accounts to do specific tests, that is one way to try and make the system a little bit more secure.

  • But we go down here again, we can take a look.

  • And so in blue is light blue on the left hand side.

  • These are the user names, these air, the user names for the accounts on.

  • If we go all the way down, we can see Bob.

  • So, Bob is the account that I use.

  • We can see the full name of Bob is simply Bob.

  • His home directory is home.

  • Bob been bashed.

  • Don't worry about that.

  • Uh, then I created a account Ralph screwed around created account.

  • Ralph again.

  • We go over here, see his full name is Ralph home.

  • Ralph, uh, when we come down here to Tim, that account that we just created and we go over here Tim Coolio.

  • He's in room number to his phone numbers 11 what?

  • His home phone number is 2 to 2 and the comment is Hey, Mom!

  • And again.

  • So that's something to be thinking about with with using using that little comment there again?

  • If you create a specific account with in order to do something, somebody could come into the password file.

  • Go.

  • Oh, OK, so this account was created to do X, y or Z.

  • And so that's really all there is to the password file.

  • And this is an easy way to go in, see if an account has been created, and then and then go from there and take a look at the information so that since this is them, all we're going to Dio is we're going to do Colon Q.

  • So Colin acu will quit us out of them.

  • Since we haven't done any modifications, we don't need to do a force What we don't need to do to save quit because we haven't modified.

  • I think so.

  • I can simply do cool and Q and we can't get out.

  • This s Oh, there we go.