Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.69 KB

sentrytool_privilege_grant.md

File metadata and controls

62 lines (46 loc) · 1.69 KB

sentrytool privilege grant

grant privileges to a role

Synopsis

Grant one or several privileges to a role. Privileges can be specified either using options or using sentry-style privilege specification. Any specification in the command-line override options.

Multiple privileges may be set at the same time.

sentrytool privilege grant

Examples


  $ sentrytool privilege grant -s server2 -r admin \
    'db=db4->table=mytable->action=insert' \
    'db=db5->table=mytable->action=remove'

  $ sentrytool privileges list
  admin = server=server2->db=db4->table=mytable->action=insert,\
          server=server2->db=db5->table=mytable->action=remove

Options

      --unsetgrant   set grant option to 'unset

Options inherited from parent commands

  -a, --action string      action
  -c, --column string      column name
  -C, --component string   sentry client component
      --config string      config file (default is $HOME/.sentrytool.yaml)
  -d, --database string    database ame
      --grantoption        grantOption
  -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")
  -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
  -U, --username string    user name (default "akolb")
  -v, --verbose            verbose mode

SEE ALSO

Auto generated by spf13/cobra on 14-Dec-2016