linux
XX[我的用户名] is not in the sudoers file. This incident will be reported
sudo没权限或者忘记root用户的密码…
1、开机启动,在出现内核选项时按"键盘e键"进行编辑
2、找到 linux16开头这一,行并在行尾添加内核参数 rd.break
3、按ctrl+x进入单用户模式
4、重新挂载,输入 mount –o remount,rw /sysroot
5、切换,输入:chroot /sysroot/
6、重新输入新的 root用
转载
2021-04-30 15:39:50 ·
113 阅读 ·
1 评论