标签:inux pad 修改用户密码 cat nop sudoers pass etc 添加用户和用户组
groupadd dev
useradd -g dev yujuan
passwd yujuan
cat /etc/group
cat /etc/passwd
sudo vim /etc/sudoers
%dev ALL=(ALL) NOPASSWD:ALL
//免密
%dev ALL=(ALL) ALL
sudo vim /etc/sudoers
yujuan ALL=(ALL) NOPASSWD:ALL
//免密
yujuan ALL=(ALL) ALL
#如果有sudo权限,记得删除 /etc/sudoers的配置
userdel yujuan
#如果有sudo权限,记得删除 /etc/sudoers的配置
groupdel dev
标签:inux pad 修改用户密码 cat nop sudoers pass etc 添加用户和用户组
原文地址:https://www.cnblogs.com/jakaBlog/p/11347717.html