privilege operations
privilege operations: list, grant or revoke privileges. Argument is a list of roles.
sentrytool privilege
sentrytool privilege grant -r r1 -s server1 -d db2 -t table1 -c columnt1 \
-a insert
sentrytool privilege list r1
r1 = db=db1->action=all, \
server=server1->db=db2->table=table1->column=column1->action=insert
-a, --action string action
-c, --column string column name
-d, --database string database ame
--grantoption grantOption
-r, --role string role name
--scope string Scope
-s, --server string server name
--service string service name
-t, --table string table name
-u, --uri string URI
-C, --component string sentry client component
--config string config file (default is $HOME/.sentrytool.yaml)
-H, --host string hostname for Sentry server (default "localhost")
-J, --jstack show Java stack on for errors
-P, --port string port for Sentry server (default "8038")
-U, --username string user name (default "akolb")
-v, --verbose verbose mode
- sentrytool - Command-line interface to Apache Sentry
- sentrytool privilege grant - grant privileges to a role
- sentrytool privilege list - list matching privileges
- sentrytool privilege revoke - revoke privilege