1. shift进入recovery模式
2. 选中root账号
3. chmod 666 /dev/null
mount -o remount rw /
4. nano /etc/sudoers
修改:
userOrAdmin ALL=(ALL) NOPASSWD: ALL
userOrAdmin是指具体的用户或者组
2. 选中root账号
3. chmod 666 /dev/null
mount -o remount rw /
4. nano /etc/sudoers
修改:
userOrAdmin ALL=(ALL) NOPASSWD: ALL
userOrAdmin是指具体的用户或者组