Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How to deny admin user/group from dropping hive tables from Hue?

avatar
Contributor

Hi community,

From Hue security browser, I have a RBAC role (admin), which was given all permission on all databases.
I have this Database A which consists of table1,2,3
I want to deny this admin role from dropping Database A -> Table1 and Table2.

Can you show me how this can be done on sentry?

Thanks!!

2 ACCEPTED SOLUTIONS

avatar
Expert Contributor

Hi @Shivakuk 

Please refer below doc, you can use the Revoke statements in sentry to restrict the access on a database

https://docs.cloudera.com/documentation/enterprise/6/latest/topics/sg_hive_sql.html#revoke_privilege...

 

Let us know if this helps

View solution in original post

avatar
Expert Contributor

Hi  @Shivakuk  As I test Sentry does not support DROP and DELETE privilege.

However if you want to remove the DROP access from Admin user, then you have first remove ALL privileges and just provide  SELECT and INSERT privileges to the user

NOTE: The DELETE, UPDATE, and UPSERT operations require the ALL privilege on the DB/ Table/ Column.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

Hi @Shivakuk 

Please refer below doc, you can use the Revoke statements in sentry to restrict the access on a database

https://docs.cloudera.com/documentation/enterprise/6/latest/topics/sg_hive_sql.html#revoke_privilege...

 

Let us know if this helps

avatar
Contributor

The document from Cloudera does not specifically mention on how to revoke drop privilege.

Please advise.

avatar
Expert Contributor

Hi  @Shivakuk  As I test Sentry does not support DROP and DELETE privilege.

However if you want to remove the DROP access from Admin user, then you have first remove ALL privileges and just provide  SELECT and INSERT privileges to the user

NOTE: The DELETE, UPDATE, and UPSERT operations require the ALL privilege on the DB/ Table/ Column.