创建用户
useradd username -m
设置密码
passwd username
添加sudo权限
chmod +w /etc/sudoers # 添加写权限
vi /etc/sudoers,找到 "root ALL=(ALL) ALL",新增一行 "username ALL=(ALL) ALL"
chomd -w /etc/sudoers # 关闭写权限
useradd username -m
passwd username
chmod +w /etc/sudoers # 添加写权限
vi /etc/sudoers,找到 "root ALL=(ALL) ALL",新增一行 "username ALL=(ALL) ALL"
chomd -w /etc/sudoers # 关闭写权限