You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Stephen Chu (JIRA)" <ji...@apache.org> on 2012/06/18 18:45:42 UTC
[jira] [Created] (HBASE-6232) HBase security commands should have a
better error when used in insecure mode
Stephen Chu created HBASE-6232:
----------------------------------
Summary: HBase security commands should have a better error when used in insecure mode
Key: HBASE-6232
URL: https://issues.apache.org/jira/browse/HBASE-6232
Project: HBase
Issue Type: Bug
Components: security
Affects Versions: 0.92.1
Reporter: Stephen Chu
I'm playing with the hbase shell's security commands and see the following.
{noformat}
hbase(main):002:0> grant 'schu', 'R', 'testtb', 'cf'
ERROR: Unknown table schu!
Here is some help for this command:
Grant users specific rights.
Syntax : grant <user> <permissions> <table> <column family> <column qualifier>
permissions is either zero or more letters from the set "RWXCA".
READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
For example:
hbase> grant 'bobsmith', 'RWXCA'
hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
hbase(main):003:0>
{noformat}
{noformat}
hbase(main):012:0> revoke 'schu', 'testtb', 'cf'
ERROR: Unknown table schu!
Here is some help for this command:
Revoke a user's access rights.
Syntax : revoke <user> <table> <column family> <column qualifier>
For example:
hbase> revoke 'bobsmith', 't1', 'f1', 'col1'
hbase(main):013:0>
{noformat}
{noformat}
hbase(main):013:0> user_permission 'testtb'
User Table,Family,Qualifier:Permission
ERROR: Unknown table testtb!
Here is some help for this command:
Show all permissions for the particular user.
Syntax : user_permission <table>
For example:
hbase> user_permission
hbase> user_permission 'table1'
{noformat}
Seems it just returns ERROR: Unknown table <first argument>
schu is the user, not the table.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-6232) HBase security commands should have
a better error when used in insecure mode
Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396066#comment-13396066 ]
ramkrishna.s.vasudevan commented on HBASE-6232:
-----------------------------------------------
@Stephen
Once you submit a patch and its get committed, then we can add you as a contributor. From then you can assign any issue to your name. This is how people are getting added to the contributor list.
So feel free to go ahead and provide a patch :).
> HBase security commands should have a better error when used in insecure mode
> -----------------------------------------------------------------------------
>
> Key: HBASE-6232
> URL: https://issues.apache.org/jira/browse/HBASE-6232
> Project: HBase
> Issue Type: Bug
> Components: security
> Affects Versions: 0.92.1
> Reporter: Stephen Chu
>
> I'm playing with the hbase shell's security commands and see the following.
> {noformat}
> hbase(main):002:0> grant 'schu', 'R', 'testtb', 'cf'
> ERROR: Unknown table schu!
> Here is some help for this command:
> Grant users specific rights.
> Syntax : grant <user> <permissions> <table> <column family> <column qualifier>
> permissions is either zero or more letters from the set "RWXCA".
> READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
> For example:
> hbase> grant 'bobsmith', 'RWXCA'
> hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
> hbase(main):003:0>
> {noformat}
> {noformat}
> hbase(main):012:0> revoke 'schu', 'testtb', 'cf'
> ERROR: Unknown table schu!
> Here is some help for this command:
> Revoke a user's access rights.
> Syntax : revoke <user> <table> <column family> <column qualifier>
> For example:
> hbase> revoke 'bobsmith', 't1', 'f1', 'col1'
> hbase(main):013:0>
> {noformat}
> {noformat}
> hbase(main):013:0> user_permission 'testtb'
> User Table,Family,Qualifier:Permission
> ERROR: Unknown table testtb!
> Here is some help for this command:
> Show all permissions for the particular user.
> Syntax : user_permission <table>
> For example:
> hbase> user_permission
> hbase> user_permission 'table1'
> {noformat}
> Seems it just returns ERROR: Unknown table <first argument>
> schu is the user, not the table.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-6232) HBase security commands should have
a better error when used in insecure mode
Posted by "Stephen Chu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396031#comment-13396031 ]
Stephen Chu commented on HBASE-6232:
------------------------------------
I'd like to take a crack at it, but it seems I can't assign myself (or anyone else) the JIRA. Can someone assign this to me?
> HBase security commands should have a better error when used in insecure mode
> -----------------------------------------------------------------------------
>
> Key: HBASE-6232
> URL: https://issues.apache.org/jira/browse/HBASE-6232
> Project: HBase
> Issue Type: Bug
> Components: security
> Affects Versions: 0.92.1
> Reporter: Stephen Chu
>
> I'm playing with the hbase shell's security commands and see the following.
> {noformat}
> hbase(main):002:0> grant 'schu', 'R', 'testtb', 'cf'
> ERROR: Unknown table schu!
> Here is some help for this command:
> Grant users specific rights.
> Syntax : grant <user> <permissions> <table> <column family> <column qualifier>
> permissions is either zero or more letters from the set "RWXCA".
> READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
> For example:
> hbase> grant 'bobsmith', 'RWXCA'
> hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
> hbase(main):003:0>
> {noformat}
> {noformat}
> hbase(main):012:0> revoke 'schu', 'testtb', 'cf'
> ERROR: Unknown table schu!
> Here is some help for this command:
> Revoke a user's access rights.
> Syntax : revoke <user> <table> <column family> <column qualifier>
> For example:
> hbase> revoke 'bobsmith', 't1', 'f1', 'col1'
> hbase(main):013:0>
> {noformat}
> {noformat}
> hbase(main):013:0> user_permission 'testtb'
> User Table,Family,Qualifier:Permission
> ERROR: Unknown table testtb!
> Here is some help for this command:
> Show all permissions for the particular user.
> Syntax : user_permission <table>
> For example:
> hbase> user_permission
> hbase> user_permission 'table1'
> {noformat}
> Seems it just returns ERROR: Unknown table <first argument>
> schu is the user, not the table.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira