su ubuntu :切换至ubuntu用户
su root:切换至root用户
sudo passwd root
为root用户分配密码
/etc/sudoers目录下保存到是各个权限的定义。
添加用户:adduser csdn
参考:
https://blog.csdn.net/appleml/article/details/44175235
https://blog.csdn.net/Mr_Von/article/details/6169398?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.pc_relevant_is_cache&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.pc_relevant_is_cache