[ 
https://issues.apache.org/jira/browse/ACCUMULO-3626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338440#comment-14338440
 ] 

Sean Busbey commented on ACCUMULO-3626:
---------------------------------------

ex:

{code}
[busbey@gateway ~]$ /usr/lib/accumulo/bin/accumulo shell -u root
Password: ********

Shell - Apache Accumulo Interactive Shell
- 
- version: 1.7.0-SNAPSHOT
- instance name: dedicated
- instance id: 98b4f38d-c792-4ad3-b1d0-bdb119fb47f7
- 
- type 'help' for a list of available commands
- 
root@dedicated> createuser example_user
2015-02-26 06:14:57,271 [Shell.audit] INFO : root@dedicated> createuser 
example_user
Enter new password for 'example_user': ******
Please confirm new password for 'example_user': ******
root@dedicated> createuser some_other_user
2015-02-26 06:15:06,862 [Shell.audit] INFO : root@dedicated> createuser 
some_other_user
Enter new password for 'some_other_user': ******
Please confirm new password for 'some_other_user': ******
root@dedicated> users
2015-02-26 06:15:13,605 [Shell.audit] INFO : root@dedicated> users
some_other_user
root
example_user
root@dedicated> exit
2015-02-26 06:15:15,974 [Shell.audit] INFO : root@dedicated> exit
[busbey@a1021 ~]$ /usr/lib/accumulo/bin/accumulo init --reset-security
Enter initial password for root (this may not be applicable for your security 
setup): ********
Confirm initial password for root: ********
2015-02-26 06:15:37,008 [conf.AccumuloConfiguration] INFO : Loaded class : 
org.apache.accumulo.server.security.handler.ZKAuthorizor
2015-02-26 06:15:37,010 [conf.AccumuloConfiguration] INFO : Loaded class : 
org.apache.accumulo.server.security.handler.ZKAuthenticator
2015-02-26 06:15:37,013 [conf.AccumuloConfiguration] INFO : Loaded class : 
org.apache.accumulo.server.security.handler.ZKPermHandler
2015-02-26 06:15:37,307 [handler.ZKAuthenticator] INFO : Removed 
/accumulo/98b4f38d-c792-4ad3-b1d0-bdb119fb47f7/users/ from zookeeper
[busbey@a1021 ~]$ /usr/lib/accumulo/bin/accumulo shell -u root
Password: ********

Shell - Apache Accumulo Interactive Shell
- 
- version: 1.7.0-SNAPSHOT
- instance name: dedicated
- instance id: 98b4f38d-c792-4ad3-b1d0-bdb119fb47f7
- 
- type 'help' for a list of available commands
- 
root@dedicated> users
2015-02-26 06:15:52,500 [Shell.audit] INFO : root@dedicated> users
root
root@dedicated> 
{code}

> Reset Security should warn and confirm
> --------------------------------------
>
>                 Key: ACCUMULO-3626
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3626
>             Project: Accumulo
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Sean Busbey
>            Priority: Critical
>              Labels: operations, supportability
>             Fix For: 1.5.3, 1.7.0, 1.6.3
>
>
> the "accumulo init --reset-security" command doesn't provide any warning that 
> it will remove all users from the system.
> It should do this and require user confirmation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to