解决方案:用su切换到root用户,修改/etc/sudoers文件,即用以下命令:
[[email protected] /]$ su
password:
[[email protected] /]$ vim /etc/sudoers
最后wq!保存退出即可
如果要切换sam用户,则:
[[email protected] /]$ su sam
[[email protected] /]$
解决方案:用su切换到root用户,修改/etc/sudoers文件,即用以下命令:
[[email protected] /]$ su
password:
[[email protected] /]$ vim /etc/sudoers
最后wq!保存退出即可
如果要切换sam用户,则:
[[email protected] /]$ su sam
[[email protected] /]$