不输入密码执行sudo命令方法介绍

1. shift进入recovery模式
2. 选中root账号
3. chmod 666 /dev/null
   mount -o remount rw /
4. nano /etc/sudoers

修改:
userOrAdmin    ALL=(ALL) NOPASSWD: ALL

userOrAdmin是指具体的用户或者组

猜你喜欢

转载自domenic.iteye.com/blog/1487645