ssk is not in the sudoers file.This incident will be reported我用普通用户ssk登陆,想让ssk成为拥有超级用户的权限的普通用户 开始提示输入密码错误 ,然后就这样了

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 10:36:52
ssk is not in the sudoers file.This incident will be reported我用普通用户ssk登陆,想让ssk成为拥有超级用户的权限的普通用户 开始提示输入密码错误 ,然后就这样了

ssk is not in the sudoers file.This incident will be reported我用普通用户ssk登陆,想让ssk成为拥有超级用户的权限的普通用户 开始提示输入密码错误 ,然后就这样了
ssk is not in the sudoers file.This incident will be reported
我用普通用户ssk登陆,想让ssk成为拥有超级用户的权限的普通用户 开始提示输入密码错误 ,然后就这样了

ssk is not in the sudoers file.This incident will be reported我用普通用户ssk登陆,想让ssk成为拥有超级用户的权限的普通用户 开始提示输入密码错误 ,然后就这样了
解决方法如下:
1>、进入超级用户模式.也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式.
2>、添加文件的写权限.也就是输入命令"chmod u+w /etc/sudoers".
3>、编辑/etc/sudoers文件.也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先摁一下Esc键,然后输入":wq")退出.
4>、撤销文件的写权限.也就是输入命令"chmod u-w /etc/sudoers".
至此,问题解决.
转载他人的 仅供参考