1、创建组
addgroup 组名
2、创建用户,添加到特定组中
adduser 用户名 -g 组名
3、修改用户密码
passwd 用户名
4、给予普通用户sudo权限
vim sudoers
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
在该位置添加需要sudo权限的用户
用户名 ALL=(ALL) ALL
保存之后,执行命令时需要sudo权限需要输入密码。