DeepVAC / MLab

“云上炼丹师”中的云
GNU General Public License v3.0
67 stars 16 forks source link

[新功能]为user添加sudo组 #11

Closed gemfield closed 3 years ago

gemfield commented 3 years ago
usermod -aG sudo gemfield

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# User privilege specification
root    ALL=(ALL:ALL) ALL
gemfield ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

#includedir /etc/sudoers.d
gemfield commented 3 years ago

merged