GBase 8s
运维管理
问答

权限问题,赋予DBA 角色后无法修改其他用户密码

发表于2024-11-20 16:28:41194次浏览12个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:8s

【操作系统】:

【CPU】:

【问题描述】*:通过jdbc执行alter user ‘user’ modify password ‘newpwd’

报错 failed to modify password for Gbase:User is not authorized to create alter drop or rename users

评论

登录后才可以发表评论
用户头像
liaosnet发表于 1年前
Only a database server administrator (DBSA) can manage user accounts. In a
non-root installation, the DBSA is the user who installed the product. Log in as
the user who installed this database server to modify user accounts.

DBA不是DBSA。
GBase用户24822发表于 1年前
@liaosnet:
GBase用户24822发表于 1年前
@liaosnet:如何让用户成为dbsa
GBase用户24822发表于 1年前
@liaosnet:dbaccess - -
> alter user user1 add authorization (dbsa);执行之后还是无法执行命令
用户头像
liaosnet发表于 1年前
@GBase用户24822:在onconfig的配置参数 ADMIN_MODE_USERS 中增加该用户名(可多个)。
该参数可在线修改,如onmode -wf ADMIN_MODE_USERS='dbtuser1,dbtuser2'
然后才可以。。
你使用的add authorization写法是三权分立时使用的,指明是三权分立中的DBSA权限。
最佳回答
GBase用户24822发表于 1年前
@liaosnet:The list of users is in the ADMIN_MODE_USERS configuration parameter is preserved indefinitely. You can use the onmode -wm or onmode -wf command to remove users.

Use the onmode -j -U command to allow one or more users to access the database server in administration mode when the database is running.

You must set the ADMIN_USER_MODE_WITH_DBSA configuration parameter to 1 to enable the users that are listed in the ADMIN_MODE_USERS configuration parameter to connect to the database server in the administration mode.
通过命令是增量设置吗,是不是应该使用onmode -j -u
用户头像
liaosnet发表于 1年前
@GBase用户24822:onmode -wf ADMIN_MODE_USERS='用户名1,用户名2,...'
就够了。
GBase用户24822发表于 1年前
@liaosnet:执行之后还是报相同的错误
用户头像
大米发表于 1年前
@GBase用户24822:可以贴一下您的详细步骤吗
用户头像
levvel发表于 7个月前
听说评论可以拿积分,我试一下子
崔哥发表于 6个月前
兔园标物序,惊时最是梅。衔霜当路发,映雪拟寒开。枝横却月观,花绕凌风台。朝洒长门泣,夕驻临邛杯。应知早飘落,故逐上春来。
用户头像
levvel发表于 5个月前
学习一下