关于解决ubuntu误改sudoers文件的解决办法

1:重新启动系统进入恢复模式

2:选择root模式

3:当输入chmod u-w /etc/sudoers 提示read-noly file system时 输入mount -o remount rw /

4:修改sudoers里面的内容,并将sudoers文件的权限修改为0440(chmod 0440 /etc/sudoers)

你可能感兴趣的:(ubuntu)