SUDO: Introduction to Linux and Basic Linux Commands for Beginners

preview_player
Показать описание
In this video tutorial, We will cover the Introduction to Linux and Basic Linux Commands for Beginners which are widely used. This is an important guide which is mainly targeted who are new to Linux. Let's see how to create super user (aka superuser or admin), normal standard user, delete or remove Linux Sudo privilege & few tips and tricks of SUDO command done by add user into a sudoers file such as displaying Asterisk while typing the password, etc. These are important commands which work on Ubuntu, Kali Linux, Redhat, Debian, CentOS, and other distributions.
----------------------------------------------------

1) Create standard and sudo privilege user
In order to create a new user on Linux, removing the user account completely or delete only the SUDO privilege, the login user should have admin privilege which means the user should be either root or with SUDO privilege.
Normally, while installing the OS, we will set up the user account which acts as an administrator. We can use this account to set up other users in Linux.

You can create a user in multiple ways. First, you can set up the home directory for the new user while creating itself. You can also create a user without setting up the password.

Once the user is created, You need to use any one of the following commands to log in as superuser/root user on Linux:
a) su command – Run a command with substitute user and group ID in Linux
b) sudo command – Execute a command as another user on Linux
----------------------------------------------------

2) Change root password:
It is highly recommended to change the root user password after installing your Linux OS. For example, in Kali Linux, ROOT user account password is TOOR (everyone knows that) and it has to be changed immediately after installation.
----------------------------------------------------

3) Delete or remove sudo privilege from user:
When you want to remove a user, you can also delete the home directory but before doing it, make sure you took a backup of your content.

3) Tips and Tricks of Linux SUDO commands:
a) You can change the regular user as a SUDO user by editing the /etc/sudoers file. When sudo command is executed the first time then it will prompt for password and by default password will be cached for the next 15 minutes. However, we can override this behavior and disable password authentication using NOPASSWD keyword.

The /etc/sudoers file should always be modified using the visudo command because this command helps to keep you from causing configuration errors that might make the resultant file unusable (i.e., it can break sudo).

b) User can enable Password feedback while helps to display the Asterisk while typing the password on Terminal. This helps while typing, you know how many characters are typed so far.

----------------------------------------------------

More Videos on Kali Linux:
------------------------------------------------

KludgeBot is where you can find "How to" tutorials and "Tips & Tricks" videos about Windows & all Linux distributions such as Ubuntu, Kali Linux, etc

Subscribe to my channel here: If that sounds like something that could help you in any way, then make sure to join me by subscribing!
-------------------------------------------------------

Music used in the video are Royalty Free Stock Music and it is downloaded from here:
Videos used in this video are Royalty Free Stock Music which is downloaded from here:
----------------------------------------------------

#KludgeBot #superuser #sudo
Рекомендации по теме
Комментарии
Автор

Check out this video to know how to create superuser on Linux & add or remove SUDO privileges to the existing user.

KludgeBot
welcome to shbcf.ru