How can we fix broken sudoers files in Ubuntu OS
======================================
Hi viewers!!! in this tutorial I'll show you how we can quickly fix the broken sudores files.
For this tutorial I'll give a normal user to sudo right but made some mistake in /etc/sudores to simulate the following error as showing below
Now see there is a syntax error in sudores files and we can not able to rectify this using the sudo command again. We are locked now Lets try to edit sudoers file again to correct this No luck here so
now what to do. lets try to change to root user and see what happen we are locked completely.
So how we can quickly fix this error without reboot the system and going to the recovery shell.
you can follow all the instruction in the video tutorial as showing below or you can follow the instruction mentioned in this article
So here is the trick just use the following one single command but very important this will work only on the OS installed with GUI ;)
pkexec nano /etc/sudoers
Once you run the above command it'll ask you for enter password as showing below
now enter the administrator password here and
wolla!!!! the file is now open and now lets make the changes
and save the file and then try again and you will find that now sudo command is back on track!!!!!
Thanks for watching this tutorial I hope you like this tutorial. For more please do visit my blog site and also subscribe my channel on youtube.
Hello viewer In this tutorial I'll show you how we can create a batch file which will shrink our existing volume an create a new volume on window machine.
You can follow the video tutorial give below or you can follow the steps mentioned here
I am using a test machine to demonstrate this procedures So in this window machine we a one volume that is C and it's size is around 150GB see the below screenshot
so our goal is to create a new volume of 40GB out of this 150GB drive to achieve like something mentioned below
So here is the script for this process in one single click
@echo off
(echo select disk 0
echo list vol
echo select volume=C
echo shrink desired 40000
echo list volume
echo create partition primary
echo format quick fs=ntfs label="Data"
echo assign letter=G:
) | diskpart
pause
what all you need is to type this into a notepad and save this file as .bat then run
as administrator.
very important : This script is wrote to keep in mind that there is only one volume on your hard disk that is "C" and you need to create the new volume on the same disk like in our case we have only one disk that is disk 0
so lets test the scripts in real world. Please run the script as an administrator
That's it this will save lots of your time.Please see the final out put as showing the screenshot below
I hope you like this tutorial please do visit on by blog for more informative tutorial.
Hi viewers !!! in this tutorial I'll show you how
to export your outlook autosave contact to csv format so you can import all the contact in any other application.
When we use outlook and send email to anyone the outook keep those email address in their email address cache and do not save into the Contact list until and unless you click on the contact on your email address field and choose save option. So sometime you wonder when you create a new user profile for move to other application that you loose all your contacts.
One of the other good example is suppose you want to move your organization user from Outlook to web base email solution like gmail. So in this case you also need to export and import the all contacts from outlook to gmail. This is not simple as out of the box as Outlook keep the cache email contacts in different format.
However their is a way around to resolve this issue. So please view the below tutorial from start to end to know how to export the cache email address of outook to other application
And thanks again!!! to visit my blog again please feel free to leave any comment or contact us if you have any queries.
Hi viewers!!! welcome back to my blog USB Disk security is very useful and a small tool which protects your data for leaking using USB drive but to lock the USB drive to protect from any data theft we need to set the password so in this tutorial I'll show you how you can reset the password if you forget that.
And thanks again!!! to visit my blog again please feel free to leave any comment or contact us if you have any queries.
Hi viewers!!! in this tutorial I will show you how you can setup the EFS (Elastic File System) on AWS and then mount on your Linux machine. So let start I have also made a video tutorial on how to setup the EFS volume so please watch that also......
So first of all What is the EFS and What are the benefits of having EFS in AWS?
Here is the answer : Amazon EFS is a fully-managed service that makes it easy to set up, scale, and cost-optimize file storage in the Amazon Cloud.
Amazon EFS file systems can automatically scale from gigabytes to petabytes of data without needing to provision storage. Tens, hundreds, or even thousands of Amazon EC2 instances can access an Amazon EFS file system at the same time, and Amazon EFS provides consistent performance to each Amazon EC2 instance. Amazon EFS is designed to be highly durable and highly available. With Amazon EFS, there is no minimum fee or setup costs, and you pay only for what you use.
All EFS file systems, regardless of size, can burst to 100 MiB/s of throughput. File systems with more than 1 TiB of Standard storage can burst to 100 MiB/s per TiB of data stored on EFS Standard. If you require higher amounts of throughput to EFS IA than your file system allows, use EFS Provisioned Throughput.
The above picture gives us a clue about how that work in AWS environment.
Below in the picture you can find out the how it works and what steps are need to be perform
Image source: AWS site.
Here is the video tutorial where I show all the steps to configure and mount the EFS storage on CentOS and you can also follow this article to see the steps by steps procedures to setup EFS for Amazon Linux OS.
Steps
First log into your aws account and search for EFS or select the service and from there choose the EFS services as showing below.
Once you click on EFS option you will see the below screen shot.
Now here you need to click on the Create file system but before that Very Important: Please don’t skip this step otherwise you may be not able to mount your EFS system on machine. So what we need to do is first create your own security group by going to EC2->Security Group ->Create a New Security Group and the following rules as showing below
Please change the source field as per your network subnet or you can use 0.0.0.0/0 if you want to all traffic from anywhere.
So in the create the file system wizard first step is “Configure the Network Access” here in this steps you need to select your VPC for which you want to create the EFS and also you need to select the subnets of the VPC, you can select all the subnets of the VPC or any specific subnet here also. And the last one is you need to select the security group and this is very important step here choose the security group that we have created for EFS storage do not use the Default one. Please see the below picture
In next step we need to “Configure the system settings” so in this step you need to configure the tag, lifecycle management, choosing throughput mode, choosing performance mode and enable the encryption setting. We have chosen the default one you can choose as per your requirement. All these option are self-explanatory you can read more about these option in the snapshot given below
In next step we need to configure the “Client Access” we leave this section as default for this tutorial however you can make the changes as per your requirement.
At last we need to review the settings and click on “Create File System”
Once click on the Create File System the next screen show that the file system is successfully created but wait here you cannot mount the EFS as yet since the “mount target point” is under creating mode so we have to wait until the “mount target point” show “Available”. Please see the below screenshots
Okay that’s it we have setup our first EFS in AWS successfully now let’s configure the client machine. I’m using the Amazon linux machine.
So first you need to ssh into your linux machine and then run the following command
Now let’s wait till the system install the require packages
Now create a directory where we can mount our new EFS system. I have created a directory name “efs” in the root directory of system.
Now mount the EFS storage on your local machine
Now let’s check the EFS is properly mounted or not
Wow!!! That’s it we have done it…… one more tip if you need to mount the EFS storage on Ubuntu, CentOS or RED Hat Linux then please install the nfs-utils package on these system as showing below
And thanks again!!! to visit my blog again please feel free to leave any comment or contact us if you have any queries.
Hi viewers!!! in this tutorial I'll show you How to setup cyberoam Device initially after unboxing. As you know that Cyberoam is one of the most famous product as a UTM. Cyberoam provide many features and all are the very user friendly so in the below video tutorial you will learn how to initially setup the cyberoam device after unboxing. Please watch the below video for all the require steps.
And thanks again!!! to visit my blog again please feel free to leave any comment or contact us if you have any queries
Hi viewers!!! in this tutorial I'll show you How to add Sophos XG image on eve-ng. As you that eve-ng is a emulation for many device like cisco, juniper, riverbed etc so in the eve-ng we can also emulate the Sophos XG firewall virtual image . This will help you to build the real type scenarios to resolve the network related issue. So please watch the video give below for all steps
And thanks again!!! to visit my blog again please feel free to leave any comment or contact us if you have any queries
Welcome !!! viewers and thank you to visit my blog noteoftech this blog will help you to find the resolution of many tech related issue and also very useful tech related tutorial. So please don't forget to visit my blog on daily basis...and please bookmark this page also. So enjoy this blog and have a nice day!!!!.