jxq
作者jxq·2018-06-05 09:12
其它·gbase

GBase 8t 安全特性之 LBAC 体验(十三)取消用户持有的 SET 安全标签

字数 1449阅读 1049评论 0赞 2

(一)创建数据库安全管理员
(二)创建 ARRAY 安全标签组件
(三)创建 ARRAY 安全策略
(四)创建 ARRAY 安全标签
(五)创建带有 ARRAY 安全标签的数据表
(六)将 ARRAY 安全标签授予用户
(七)取消用户持有的 ARRAY 安全标签
(八)创建 SET 安全标签组件
(九)创建 SET 安全策略
(十)创建 SET 安全标签
(十一)创建带有 SET 安全标签的数据表
(十二)将 SET 安全标签授予用户

(十三)取消用户持有的 SET 安全标签

假定在系统中存在 db301 数据库,在数据库中存在带有 SET 安全标签的 table302 数据表。user303用户持有 policy302.high 安全标签,user304 用户持有 policy302.lower 安全标签。(详请参阅“GBase 8t 安全特性之 LBAC 体验(十二)将 SET 安全标签授予用户”

1、通过 dbsecadm301 用户登录。
2、运行 dbaccess 实用程序来打开数据库,执行
*dbaccess - -
database db301;*
打开成功,系统提示:
Database selected.
3、取消 user303 用户持有的 policy302.high 安全标签,在 dbaccess 的提示符下执行
revoke security label policy302.high from user303;
安全标签取消成功,系统提示:
Security label revoked.
4、取消 user304 用户持有的 policy302.lower 安全标签,执行
revoke security label policy302.lower from user304;
安全标签取消成功,系统提示:
Security label revoked.

1、通过 user303 用户登录。
2、运行 dbaccess 实用程序来打开数据库,执行
*dbaccess - -
database db301;*
打开成功,系统提示:
Database selected.
3、执行数据插入操作,在 dbaccess 的提示符下执行
insert into table302(id,name) values(3,'zhaowu');
插入操作失败,系统提示:
8247: User does not have the LBAC credentials to perform INSERT on table (informix.table302).
4、执行数据查询操作
select from table302;*
系统提示:
No rows found.

1、通过 user304 用户登录。
2、运行 dbaccess 实用程序来打开数据库,执行
*dbaccess - -
database db301;*
打开成功,系统提示:
Database selected.
3、执行数据插入操作,在 dbaccess 的提示符下执行
insert into table302(id,name) values(4,'wangliu');
插入操作失败,系统提示:
8247: User does not have the LBAC credentials to perform INSERT on table (informix.table302).
4、执行数据查询操作
select from table302;*
系统提示:
No rows found.

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

2

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广