linux sudoers
Most of the system commands can be run as a root user or a user with sudo privileges. It’s not a good idea to always login as a root user. The secure way is to disable root login after creating a new user and providing him sudo privileges.
大多数系统命令可以以root用户或具有sudo特权的用户身份运行。 始终以root用户身份登录不是一个好主意。 安全的方法是在创建新用户并为其提供sudo特权后禁用root登录。
In this tutorial, we will learn how to add a user to sudoers list in Linux. The commands are generic to Linux and they will work on every distributions, such as Ubuntu, CentOS, Debian, etc.
在本教程中,我们将学习如何在Linux中将用户添加到sudoers列表。 这些命令是Linux通用的,它们可在所有发行版上使用,例如Ubuntu,CentOS,Debian等。