reason
sometimes when we use the sudo command to switch users may encounter the following error:
XXX is not in the sudoers file. This incident will be reported
XXX is your current user name, is because the user does not have to join sudo configuration file, The solution is to open the configuration file and add user permissions.
solution </ strong>
step1: using su in as the root user, and enter the following command to enter sudo configuration file
step2: the location of the bottom was found in the configuration file, and add user permissions, save the exit.
tep3: use sudo command again won’t appear error message.