How to solve the problem that Ubuntu users cannot use sudo command?
Time: 2017-05-10Source: Huajun News NetworkAuthor: Uzumaki Naruto
The sudo command can be used to elevate privileges, but when operating the Ubuntu system, users sometimes receive an error message when using the sudo command. How to solve this problem? The following is how an Ubuntu user cannot use the sudo command to solve the problem? Tutorial, once you grasp the technical points, it will be much easier to learn. Hurry up and follow the Huajun editor to take a look! .
Problem analysis and solutions:
It turns out that not every user can use the sudo command, because only users with permissions can use the sudo command, and these permissions are in /etc/sudoers. We can directly use the command visudo to do it (this is what I did). You can also open /etc/sudoers through an editor. After opening it, add your own account and save it as follows.
# User privilege specification
root ALL=(ALL:ALL) ALL
linc ALL=(ALL:ALL) ALL
The above is the editor's summary of the solution to the problem that the sudo command cannot be used in Ubuntu. The reason why it cannot be used is that the user you created does not have permission to use it. You can use the visudo command to solve the problem.
Popular recommendations
-
Alipay open platform development assistant
Version: 1.0.7 official versionSize: 112.06MB
The official version of Alipay Open Platform Development Assistant is a professional Alipay key generation tool. The official version of Alipay Open Platform Development Assistant is developed by Alipay...
-
Huofeng installation package creation tool
Version: 3.0Size: 6.17MB
Huofeng installation package production tool is a software tool that focuses on the production of software installation packages. It is simple, efficient, stable and robust, ensuring that every product of the user is safe and stable...
-
XPK packaging tool
Version: Size: 757KB
The latest version of the XPK packaging tool is a very professional packaging tool suitable for domestic Android games. Nowadays, more and more users use Android mobile phones,...
-
AIBB-Advanced Installer batch packaging and building
Version: 1.0.1Size: 2.18MB
AIBB-AdvancedInstaller batch packages and builds program packaging projects, unified version management, unified management of output paths, and one-click rapid batch packaging and construction!
...
-
MX.xn
Version: 1.0 Green versionSize: 9.6MB
MX.xn green version is an excellent professional regularity validation tool. The latest version of MX.xn has powerful functions and can help users easily record every visit to the URL and...