“Sudo” is a very useful tool on the #Llinux# platform, which allows system administrators to assign some reasonable "rights" to ordinary users, let them perform some only Tasks that superusers or other privileged users can accomplish, such as running commands like restart, reboot, passwd, or editing some system configuration files, which not only reduces the number of logins and management time for root users, but also improves them. System security.
Sudo is a command that governs everything. It literally means “superusers can do it!” "super user do!) For Linux system administrators or advanced users, it is one of the most important commands. Have you ever had the experience of trying to run a command in the terminal, but you end up with “look for access”? As the so-called power is greater, the greater the responsibility, log in with the root user, or use the su “switch user” command, sudo is much better.
If you prefix the linux command with the sudo” prefix, it will run the command with elevated privileges and perform elevated tasks for certain administrative tasks.
If you are familiar with Windows
system sudo and when you try to handle any important operations, the pop-up Windows User Account Control (ACL) dialog is very similar, in Windows, if you try To perform an administrative task, the dialog asks if you want to continue (“ Are you sure you want to run the program you just clicked? & rdquo;) to confirm the task. On the Apple Mac Computer
, a security dialog will pop up asking you to enter your password. If you don't have the proper permissions under Linux, some operations will be quite weird. Which important configuration file you edit may not save the content properly. The program you installed may refuse to run. The excellent source code that you have downloaded and wants to compile cannot be compiled. If you are unlucky, you will even see "Deny access" or another error message.
Using sudo is the safest way to increase permissions. Let's take a look at another way to improve permissions. Switching user commands “su” will ask you to enter the root password and give you a superuser prompt, indicated by the # symbol, this # symbol means "dangerous!" You have logged in as the root user. ”
Suderos file
This file is the basis of sudo, which controls who can use the sudo command to get elevated privileges, usually located in /etc/sudoers. An effective and secure way is to use the visudo command. This command launches the vi editor with elevated privileges so you can edit and save the file. It also locks the file on the sudoers file so that others can't edit the file, and if you finish editing it will analyze the file for simple errors. Editing sudo files with visudo is much safer than just using any old text editor.
The sudoers file contains a number of parameters that specify which users or groups of users can execute which commands. We are going to grant ourselves access to sudo as long as it is added at the bottom: username ALL=(ALL) ALL //for the user “username” Grant sudo access%wheel ALL=(ALL) ALL //Grant sudo access to all users belonging to the wheel user group Now the specified username can use all root privileges.
Linux Commands Several options for sudo
Features of the Linux command sudo
The role played by sudo is destined to be extra cautious in terms of security, otherwise it will lead to illegal users gaining root privileges, and it will also take into account Sexuality allows system administrators to use it more efficiently and conveniently. The sudo design is designed to give users as little permission as possible but still allow them to complete their work. So sudo has the following characteristics:
Linux Commands sudo Common Parameters
~end~
If the liunx system is started, I just said about it, but the specific process is not well understo
JFS was developed by IBM and originally appeared on the AIX operating system, which provides a log-b
After linux rm deletes the file, recovery is more troublesome. Even if it is restored, the file na
1. Disable root user login ssh #vi /etc/ssh/sshd_config Change PermitRootLogin yes to PermitRootLog
Squid, nginx, lighttpd reverse proxy difference
Steam host will enable Linux system
Linux executable program to make services and boot self-start method
Steps to modify the original Linux hostname
Linux ping: unknown host error solution
Let Linux boot automatically open NUMLOCK
Desktop Linux opportunities come
Teach you how to install application software in Linux
Linux Standard Input/Output Tutorial
Simple steps to configure NFS under Linux
Windows select the default application method for opening files
Control strategy with Win7 sleepy Trojan virus
Tile size modification tutorial in win8
How to streamline the Win10 system How to streamline the
By unloading the notebook win10 McAfee solution to the system card
Analyst: Win10 installed capacity will reach 100 million at the end of September
Vista automatically clears virtual memory page
Keygoe new application development kit based on linux platform V3.0.3