Ubuntu添加用户,并给相应的用户分配 root权限 sudo adduser xxxx 随后会输入相应的账户的密码 vi /etc/sudoers 在root下面,添加代码 xxx ALL=(ALL:ALL) ALL