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 ~]#评论已关闭
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526