1.切换到root用户 2.在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称 转载于:https://www.cnblogs.com/haxianhe/p/9271238.html