debian sudo

apt-get install sudo

vi /etc/sudoers

add

CentOS 7 

root ALL=(ALL) ALL

Debian

root ALL=(ALL:ALL) ALL

按照root所在行格式添加用户到sudoers

例如:

root ALL=(ALL) ALL

la  ALL=(ALL) ALL

root ALL=(ALL:ALL) ALL

la  ALL=(ALL:ALL) ALL

原文地址:https://www.cnblogs.com/wangshuyi/p/6295817.html