red hat 6 中当前用户 is not in the sudoers file

1.进入超级用户模式。"su -" 
2.添加文件的写权限。"chmod u+w /etc/sudoers"。 
3.编辑/etc/sudoers文件。"vim /etc/sudoers",输入"i"进入编辑模式,:"root ALL=(ALL:ALL) ALL"添加"xxx ALL=(ALL:ALL) ALL",保存(Esc键,输入":wq")退出。

猜你喜欢

转载自blog.csdn.net/IT_jiao/article/details/82793032