And this movie I'm going to be showing you how to check and change your AC Linux modes.
Let's begin.
So here in my server if I go through when you get and force you can see my current SC Linux mode.
I can also say AC status which is going to show me a bit more information.
This is my current mode.
And you can see from here that this set in his comments straight from the configuration file.
I can change the current mode in runtime with certain force so set in force zero will change the mode
too permissive and set in force one will change it to enforce it.
So let's go out and say is set and force zero.
And if I SC status again you can see that we are now in permissive mode.
But the configuration file still has a setting of in force n which means this current mode will not
survive a reboot.
We can also change the current set in through the bootloader.
This can be quite useful if your server is refusing to start and you suspect as C Linux to be the problem.
So let's go ahead and reboot
so here in my bootloader going to look for the line that says Linux 610 let's jump to the end of this
line and tack on and force N equals zero and control X back on my server if I go through an AC status
again you can see the mode is still permissive bought from the configuration file.
The mode is different.
Which means this current certain will not survive a reboot.
I'm going to cat.
Let's just go ahead and copy that and faced it and go into the configuration file to see if it contains
this file or we can make persistent changes to the AC Linux mode.
That's all for now.
Thank you for your time.
And I hope to see you in the next lesson.