GBase 8a
安装配置
文章

GBase 8a用sudo安装时出现输入密码等待300秒超时

发表于2023-04-23 16:00:2122次浏览0个评论

问题描述:

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.

 

解决方案:
sudo用户默认策略是第一次执行命令时,要输入当前sudo用户的密码,如上就是要输入gbase操作系统用户的密码。 一旦运行成功,后续sudo则不再需要输入了。调整sudo用户的策略,明确不需要输入密码 NOPASSWD。

[root@gbase_rh7_001 ~]# cat /etc/sudoers.d/gbase
gbase ALL=(ALL) NOPASSWD:ALL
[root@gbase_rh7_001 ~]#
评论已关闭