1.登录root用户,执行vim /etc/sudoers

2.找到Allows people in group wheel to run all commands,在后面新增用户

image

3.按esc键,后执行:wq!(保存退出)

posted on 2023-12-02 10:36  焕的一身轻  阅读(1556)  评论(0)    收藏  举报