使用root账号登陆之后

添加sudoers文件写的权限。

chmod u+w /etc/sudoers

vi /etc/sudoers

Allow root to run any commands anywhere

添加
developerName ALL=(ALL) NOPASSWD: ALL
编辑sudoers文件并添加相应的内容。

wq保存

chmod u-w /etc/sudoers