您的位置:首页 > 其它

ubuntu下设置root权限不用输入密码

2017-06-29 15:50 260 查看
cd /etc

sudo gedit sudoers

# User privilege specification
root ALL=(ALL:ALL) NOPASSWD:ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD:ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

修改root admin sudo ALL=(ALL:ALL) ALL 为 ALL=(ALL:ALL) NOPASSWD:ALL
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: