What Is Sudo In Linux – To make changes to the system such as adding, editing or deleting system files, and carrying out administrative activities such as installing applications, adding new users and so on, you can do it in two ways.
First, you can use a user named “root” which is a super user or user with the highest access rights on Linux. By using “root” you can make any changes to system files, you have the right to full access to the system.
Another way, if you do not have or are not using the user “root” is to use the command “sudo” from a normal user who has administrative access rights (not all users can do it, only users who have administrative access rights).
The method that you use between the two methods may depend on which distribution you use. Because some Linux distributions like Fedora, RedHat, OpenSuSE and others activate the super user “root” by default. While some other distributions such as Ubuntu, Linux Mint, Elementary OS and others do not activate the super user “root” by default for several security reasons. Why? So what is “sudo” really? Let’s discuss What Is Sudo In Linux.
What Is Sudo In Linux
Sudo Brief History
“Sudo” was originally created by Bob Coggeshall and Cliff Spencer in 1980. Since that first discovery, “sudo” has been reconfigured several times how to use it by adding new capabilities and being redeveloped by other developers.
Until around 1994, Todd Miller developed “sudo” at Colorado University, an unofficial version of sudo which was later released and called “CU sudo”.
This version supports or can be used on more Linux distributions than the previous version which only supports certain distributions. In addition, Todd Miller also made a lot of fixes from bugs that were previously “sudo”.
While the original “sudo” didn’t have new releases and improvements since 1991, “sudo” developed by Todd Miller was released again in 1999 with various improvements and capabilities. Because of the improvements and capabilities, then the “sudo” version developed by Todd Miller became the “sudo” version used in the Linux distributions that we use today.
What is sudo?
If you are accustomed to using traditional Linux, then you must be used to using the super user “root”. You can even switch from a normal user to a “root” user just by using the “su” command.
For many people, logging into the system as a user “root” is a dangerous thing, considering “root” can easily make changes to system files and perform administrative actions such as installing applications and so on.
That’s why he created “sudo”.
“Sudo” itself is an abbreviation, initially “sudo” stands for “substitute user do”, but over time “sudo” is more often and appropriately referred to as an abbreviation of “super user do”.
“Sudo” in an effective and safe way allows a normal user to run a program as a super user or “root”.
The use of “sudo” to perform administrative actions that can make changes to system files is believed to be safer than having to use the “root” user directly, because the user will be asked for a password first and will be notified of security confirmation before making changes to system files or administrative actions.
Imagine if you accidentally deleted an entire system file just because you pressed a button incorrectly or typed a command incorrectly, or imagine if you accidentally installed a malicious application that could harm your system files. Those are some of the reasons why using “sudo” is safer than having to use the “root” user directly.
But there are still those who do not agree with this opinion. That is why there are some distributions that prefer to only use the “sudo” method to take administrative actions instead of activating the user “root” by default, and there are also Linux distributions that allow the use of the user “root” by default.
However, by respecting the opinions that you believe in, and the distribution of what you are currently using, we know there will always be weaknesses and strengths from each side, and that will always be debatable.
Please use the user “root” insofar as you are sure the actions you are doing are safe and you know the limits are safe in using them. In the end, we as the users behind it are the most important things.
Then what about sudo su and su? Are the three commands the same?
The following is an explanation of su, sudo and sudo su.
In linux the su command is a Super User or often called root. By using this root account, the user has all access to all system files in Linux. To be able to enter as su (super user), it can be done by running the su command, then entering the password from root. In its use, this user is used for jobs that are indeed just needed and is not recommended to be used for public works, because it has a dangerous risk. If you type a command incorrectly, it will damage the system.
Sudo stands for Super User DO (a normal user can act as a super user). Sudo is a program contained in Linux that is used to execute commands that require access from the root account. Sudo can only be used by users who are already listed in /etc/sudoers. The initial purpose of creating sudo is to reduce the dangerous risks that might occur if you use root too often. Therefore, the sudo program is created to allow ordinary users to run commands that require access from root without having to log in using root. At run, sudo will ask for the user password running sudo, but it can also be created to request a root password or no password. at all. By default the password entered earlier will be stored for 15 minutes, and the next 15 minutes the user will be asked to enter a password again.
• sudo su
Sudo su is one of the commands in the Linux operating system that can only be done if the user has root access. So sudo will do the command as superuser “sudo su” and give authority so that ordinary users can act like super users, so that ordinary users can freely “master the system”. Unlike sudo, this command will continue to apply until the user closes the terminal, so the user does not need to enter the password repeatedly. Also note that the sudo su command is usually only used on Ubuntu Linux.
Thus the review of information What Is Sudo In Linux. Of course now you have understood What Is Sudo In Linux. We hope this information can add insight to you. If you like this article, you can share it with your friends. Or if there are suggestions you can comment below. Thanks.