📜  在 centos 7 中创建 sudo 用户 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:24.351000             🧑  作者: Mango

代码示例2
Create a new user accoun: useradd username
Set the user password: passwd username
Add the new user to the sudo group: usermod -aG wheel username
su - username, then run, echo "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username