02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

What are Access Levels on Linux

This session is dedicated to really understanding what the access levels we talked about throughout the last few lessons. It isn't mandatory but I strongly suggest you watch it as it will empower you and that is always a great idea.

Video Transcript

00:00If you're watching this video I am kind of proud of you because that means you
00:04really want to understand how the things work so you'll be empowered and feel
00:07safer. In this video I want to talk to you about what were those privileges
00:12that we saw inside of Visudu. So to do that I'm gonna again go inside of
00:16Visudu let's jump right in and we're gonna learn basically about what are the
00:21what are the the axis levels that the user is going to have there oh excuse
00:26you're not oh yeah it was user sbin visudu and again I'm just gonna scroll
00:31all the way to the bottom of the page just back to that where we saw that all
00:35all and remember in the last video we removed the user demo he doesn't have any
00:42access to anything but himself. Now what if and this is a little bit advanced and
00:47you're probably not gonna do this on a daily basis but it is a great idea to
00:51know how this works. So we saw that and I'm just gonna come right here and it
00:56type here insert and I'm just gonna type inside my user demo which basically the
01:00first value here is the user that you want to give effective or the user that
01:05you want to grant access to. Now the next step is what what type of access do you
01:11want to grant so for example if I wanted to say in the first line here
01:15we're saying we want to give complete access to every single user and in
01:20every single command every single application every single thing on our
01:24system in this scenario if I wanted to I could have said hey I want to give
01:28this access this user access to everything but only everything that the
01:33root has to offer so I'm not giving it access to every single user I'm just
01:37giving it access to the root if I wanted to I could have also said hey I want
01:41to give access to this user to the root but not every single command not
01:46every single app not every single thing inside of the system in general
01:51will have root access so for example I could actually list if I say you're all
01:55that means it'll have all access to everything the root has but if instead of
01:59that I list inside here just the actual applications specifically that I want
02:04the user to have access to so the execution level so if this is has
02:10access to view all the files and maybe edit the files this will be have the
02:15right to execute files so if you want to execute an application like restarting
02:19your server or installing more applications so you might want to give
02:23the user access to your root to the actual files inside of the root but you
02:27don't want to give the user access to do whatever they want on your system
02:30beyond having access to that specific user in that case you would just type
02:35your list by list all the different all the different applications you want the
02:40user to be able to have access to and this is not going to automatically fill
02:44out you're going to actually actually type your all the different command
02:47command one and you put your comma and you'll put you'll separate it by commas
02:53and put inside all the different commands that you want to have access to
02:56that user will have access to in my case I want to give them all access and
03:00really what I want to do is I want to give this user all access all the time
03:04so I'm going to set it to be all and I'm going to set my in my access not
03:08only to the root but I want my demo well let's leave it because it's a
03:12demo account but if this was really the account that we were going to use
03:15that we were going to use for every single one of our this is going to be
03:19our default route instead of using the root we want to give it all oops before
03:24we shut down this video I forgot completely to talk about this all so
03:28let's just recap again really quickly so we started this all relates to what
03:33application that this user will have access to and we would list them out
03:38with a comma separation basically the full path to the spot to the files the
03:43inner circle here the inside all says what users does this user have access to
03:48so all says it has access to all users if we wanted to specific users such as root
03:53we would put the root inside here now the last all is really something you
03:58don't have to worry about and if you do have to worry about it you probably
04:01already know how to do it this relates to if you have a few servers and you
04:05wanted to find what servers have access to but in our case and 99% of the
04:11cases in your case you're probably only working with one server so just keep it
04:15at all you don't you don't have to worry about it all right in the next video
04:19we're going to continue talking about permissions a little bit more and
04:22take a little deeper look into groups such as how to create a new group so
04:26see you in the next video

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!