Ubuntu implementation of sudo command slow solution

  

Ubuntu sudo command is mainly used to improve account permissions, which can save time and improve the security of Ubuntu. However, in some cases, the sudo command is slow under Ubuntu. How to solve this problem?

follows:

1, we must first confirm that the current user can execute sudo

You can view /etc /sudoer this document, whether there is a current user, without Please contact the administrator or add it as root.

2, check your own host name

[root@centos ~]# hostname

centos.6.7

[root@centos ~]#< Br>

3, add your own hostname to the /etc/hosts file, the format is as follows

127.0.0.1 centos.6.7 localhost localhost.localdomain localhost4 localhost4.localdomain4

: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Here, the problem of slow execution of sudo command under Ubuntu has been solved. If you use sudo command to switch users very slowly, then you can refer to: RHEL 6.0 What should I do if the system sudo switches users too slowly?

Copyright © Windows knowledge All Rights Reserved