一
用root用户找到etc\sudoers文件
cd etc
二
修改etc\sudoers 文件的权限
默认是只读的
修改为可写的
chmod u+w sudoers
三
打开 sudoers文件,在Allow root to run any commands anywhere 后面 添加一条(把上面的一条内容复制下来 修改用户名即可)
用root用户找到etc\sudoers文件
cd etc
修改etc\sudoers 文件的权限
默认是只读的
修改为可写的
chmod u+w sudoers
打开 sudoers文件,在Allow root to run any commands anywhere 后面 添加一条(把上面的一条内容复制下来 修改用户名即可)