GBase 8c
其他
文章

GBase 8c部署准备(一):创建gbase用户并配置sudoer

发表于2023-12-08 15:47:4316次浏览3个评论

所有节点均创建gbase组和用户:

[root@localhost ~]# groupadd gbase

[root@localhost ~]# useradd -m -d /home/gbase gbase -g gbase

[root@localhost ~]# passwd gbase

返回并设置密码,请牢记密码。

添加gbase至sudoer:

[root@localhost ~]# visudo

在打开的文档中如下位置增加gbase用户及权限:

## Allow root to run any commands anywhere

root    ALL=(ALL)       ALL

gbase   ALL=(ALL)       NOPASSWD:ALL

配置sudoer后,数据库安装配置操作无需root权限。

评论

登录后才可以发表评论
用户头像
levvel发表于 8个月前
学习一下
用户头像
GBase用户28017发表于 7个月前
vb
用户头像
levvel发表于 6个月前
虚心向前辈学习