If you are looking for software to use, go to Huajun Software Park! software release

How to solve the problem that Ubuntu users cannot use sudo command?

Author: Uzumaki Naruto Date: 2017-05-10

Ubuntu 32bit
Ubuntu 32bit-16.10 official version

Installation and production Storage: 711980KB Time: 2009-10-26

Software introduction: Ubuntu is an operating system completely based on Linux. It is not only free, but also provided by professionals and amateurs...

Download now

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! .

53-150112113043B3.jpg

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.

Related articles