When you finish installing CENTOS7, sudo is not enabled by default, and sudo should be set first.Sudo is the role of the current non-root user in the use of the command without permission, directly before the command to add sudo, enter their current
Sudo originated in the early 1980s s and was developed by the State University of New York in Buffalo, followed by the University of Colorado for in-depth development. Website: http://www.gratisoft.us/sudo/
Sudo is a tool that allows the system
Example of SU:
Su switches to the root user by default without adding any parameters, but does not go to the root user's home directory. That is to say, it is switched to the root user, however, the root logon environment is not changed. You can
I. Introduction to sudo:
1. concept:
Sudo is a common tool in linux that allows common users to use superuser permissions. It allows system administrators to execute some or all of the root commands, such as halt, reboot, and su. This not only
1. Basic security measures1.1 System Account CleanupIn the Linux system, in addition to the user manually created, but also included in the system or program during the installation process of a large number of other users, in addition to Superuser
Deep understanding of the difference between Sudo and SuThe maximum difference between the two commands is:The sudo command needs to enter the current user's password, and the SU command needs to enter the root user's password. Another difference is
Linux sudo command -- sudoers file configuration, sudosudoersThe Linux sudo command and its configuration file/etc/sudoers will also know about the sudo command. The core idea of The sudo command is to grant permissions, that is, the user of a
LinuxSudo command and its configuration file/etc/
Sudoers
May 4, 11:00:56
Add to favorites I want to contribute
LinuxSudo command and its configuration file/etc/
SudoersPair
LinuxSome people will know about the sudo
The flow of sudo to execute a commandSwitches the current user to the Superuser, or to the specified user,The command is then executed as Superuser or as the user it specifies to switch to, and is returned directly to the current user when the
Deep understanding of sudo,
[Root @ cairui ~] # Cat/etc/sudoers # Sudoers allows special users to run varous commands as # the root user, without needing the root password. # sudoers allows specific users to execute various commands as rot without
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.