添加新用户
adduser username
将新用户加入root组
usermod -G root username
修改配置文件,给用户添加sudo权限
vi /etc/sudoers 示例: 找到这行,在root下面添加用户 # User privilege specification root ALL=(ALL:ALL) ALL username ALL=(ALL:ALL) ALL
添加新用户
adduser username
将新用户加入root组
usermod -G root username
修改配置文件,给用户添加sudo权限
vi /etc/sudoers 示例: 找到这行,在root下面添加用户 # User privilege specification root ALL=(ALL:ALL) ALL username ALL=(ALL:ALL) ALL