📅  最后修改于: 2022-03-11 14:50:42.751000             🧑  作者: Mango
usermod -aG root user or usermod -aG sudo user
# the in order to avoid password set edit permission to file:
# /etc/sudoers and add to it in the last line:
userALL=(ALL:ALL) NOPASSWD: ALL