create account

How to review account permissions and change your recovery account by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$52.23
How to review account permissions and change your recovery account
![image.png](https://files.peakd.com/file/peakd-hive/holger80/UScDOcPB-image.png)
[source](https://pixabay.com/de/illustrations/schl%C3%BCssel-schlo%C3%9F-sicherheit-metall-3348307/)
All accounts on the HIVE blockchain that existed also before the fork may have posting permissions granted to apps that do not exists on the HIVE blockchain. It is a good idea to remove them for now.


You can use beempy to remove posting permissions to your account. At first,
all account that have posting/active permissions should be printed with
```
beempy permissions holger80
```

```
+------------+-----------+-----------------------------------------------------------+
| Permission | Threshold |                                               Key/Account |
+------------+-----------+-----------------------------------------------------------+
|      owner |         1 | STM5XDYn3NeTqiMd1wczZjF9sPiJqY2uQw9HRwT6LR6rQytAxWNfz (1) |
|     active |         1 | STM7tA7Mh81wJV1J8eW8NyGLc3XCSyXNdFnhAh8F8bYYd8yAcy6Ew (1) |
|    posting |         1 |                                           actifit.app (1) |
|            |           |                                             dpoll.xyz (1) |
|            |           |                                             esteemapp (1) |
|            |           |                                             nc-client (1) |
|            |           |                                            nextcolony (1) |
|            |           |                                             peakd.app (1) |
|            |           |                                             rewarding (1) |
|            |           | STM6t5ExkHZtQL1pdkrRZjCgzbAdnB3YUYCZgrYWDXvdnU5bp57jL (1) |
+------------+-----------+-----------------------------------------------------------+
```
## Remove posting permission
Now, not needed permissions can be removed by
```
beempy disallow -a holger80 busy.app
```
where the account name is set with `-a`.
This command broadcasts a `account_update` operation and removes the given account name from the `account_auths` field.
![image.png](https://files.peakd.com/file/peakd-hive/holger80/nNzpFYoS-image.png)

This can also be done with https://hivesigner.com/revoke/ followed by the account name, e.g. https://hivesigner.com/revoke/busy.app

Changing and reviewing permissions is also possible with peakd:
https://peakd.com/@holger80/permissions

## Recovery account
The recovery account can be check with https://hiveblocks.com/@holger80
![image.png](https://files.peakd.com/file/peakd-hive/holger80/n5L0jCIN-image.png)
It is set to @steem for my account and as it is most unlikely that @steem will ever sign a `Request_account_recovery` operation on HIVE, I'm unable to recovery my account, when I would accidentally leak my owner key and someone would change it using my leaked owner key.

This is most unlikely, as I'm not using my owner key but it could happen.

### How does account recovery work?
Assuming, my owner key was changed within 30 days, I have the previous owner key and the recover account is signing, I can recover my account:
1. I need to create a new owner key
2. the recover account broadcasts a `Request_account_recovery` operation with the new owner public key  signed with its active key
3. I need then to broadcast a `Recover_account` operation with the old and the new owner public key and sign it with the old and the new owner private key.
4. I can change now all keys with an `Account_update` operation signed with the new owner key.

Currently this will not work for me, as @steem will not broadcast a `Request_account_recovery` operation on HIVE.

## Changing the recover account
I created a new account @recovery.account on HIVE as my new recovery account.
It would be possible to use hivesigner for this:
https://hivesigner.com/sign/change_recovery_account?account_to_recover=holger80&new_recovery_account=recovery.account&extensions=%5B%5D
or peakd: https://peakd.com/@holger80/permissions

But I do like to use my own script:
```
from beem.account import Account
from beem.nodelist import NodeList
from beem import Steem
from beem.transactionbuilder import TransactionBuilder
from beemgraphenebase.account import PrivateKey
import beembase
import getpass


if __name__ == "__main__":
    nodes = NodeList()
    nodes.update_nodes()
    key = getpass.getpass(prompt='Owner key: ')
    owner_key = PrivateKey(wif=key)
    print("pub: %s" % str(owner_key.pubkey))
    account_name = input("account name: ")
    new_recovery_account = input("new recovery_account: ")
    hive = Steem(node=nodes.get_nodes(hive=True))
    assert hive.is_hive
    
    account = Account(account_name, steem_instance=hive)
    new_rec_acc = Account(new_recovery_account, steem_instance=hive)
    
    op = beembase.operations.Change_recovery_account(**{
        'account_to_recover': account['name'],
        'new_recovery_account': new_rec_acc['name'],
        'extensions': []
    })
    print(op)
    prompt = input("Broadcast the operation? [y/n]")
    if prompt[0] == "y":
        tb = TransactionBuilder(steem_instance=hive)
        tb.appendOps([op])
        tb.appendWif(str(owner_key))
        #tb.appendSigner(account['name'], 'owner')
        tb.sign()
        trx = tb.broadcast()
        print(trx)
    
```
Results in

![image.png](https://files.peakd.com/file/peakd-hive/holger80/N8fWV7bM-image.png)
This means that in 30 days my recovery account will be changed.

I will keep the keys of @recovery.account in a safe place and will not use them.

## Is there a need for a recovery account provider?
Do you want also to change your recovery account? How could this work? Let me know.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 248 others
properties (23)
authorholger80
permlinkhow-to-review-account-permissions-and-change-your-recovery-account
categoryhive
json_metadata{"app":"peakd/2020.03.14","format":"markdown","tags":["hive","beem","python","development"],"users":["holger80","steem","recovery"],"links":["https://pixabay.com/de/illustrations/schl%C3%BCssel-schlo%C3%9F-sicherheit-metall-3348307/","https://hivesigner.com/revoke/","https://hivesigner.com/revoke/busy.app","/@holger80/permissions","https://hiveblocks.com/@holger80","/@steem","/@steem","/@steem","/@recovery.account","https://hivesigner.com/sign/change_recovery_account?account_to_recover=holger80&new_recovery_account=recovery.account&extensions=%5B%5D"],"image":["https://files.peakd.com/file/peakd-hive/holger80/UScDOcPB-image.png","https://files.peakd.com/file/peakd-hive/holger80/nNzpFYoS-image.png","https://files.peakd.com/file/peakd-hive/holger80/n5L0jCIN-image.png","https://files.peakd.com/file/peakd-hive/holger80/N8fWV7bM-image.png"]}
created2020-04-02 22:04:27
last_update2020-04-04 06:25:21
depth0
children17
last_payout2020-04-09 22:04:27
cashout_time1969-12-31 23:59:59
total_payout_value30.183 HBD
curator_payout_value22.046 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,661
author_reputation358,857,509,568,825
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,685,152
net_rshares154,060,297,427,074
author_curate_reward""
vote details (312)
@ajks ·
Changing recovery account is great and anyone can do it easily. But the problem is that whom to set account trustee, if I do so and set someone my account trustee how can I prove my ownership on stolen account. Second question - If I create an account like you they I will need a tool to do all the process because I'm not a developer. 
So , do you have answers of these questions

@holger80
properties (22)
authorajks
permlinkre-holger80-q883ru
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 17:40:45
last_update2020-04-03 17:40:45
depth1
children0
last_payout2020-04-10 17:40:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length391
author_reputation80,793,116,826,740
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,695,388
net_rshares0
@amico ·
@tipu curate
___
A huge hug from @amico! 🤗
properties (22)
authoramico
permlinkre-how-to-review-account-permissions-and-change-your-recovery-account-20200402t220912z
categoryhive
json_metadata"{"app": "rewarding/0.1.0"}"
created2020-04-02 22:09:42
last_update2020-04-02 22:09:42
depth1
children0
last_payout2020-04-09 22:09:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation51,076,240,298,517
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,685,211
net_rshares0
@bashadow ·
I think I got some of them removed, but is there an easy to view location where I can see who I have given permissions to? On Steem block Chain I used Steemd to see this info, but have not found a similar app for hive yet.
properties (22)
authorbashadow
permlinkre-holger80-q86nsw
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-02 22:58:03
last_update2020-04-02 22:58:03
depth1
children5
last_payout2020-04-09 22:58:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length222
author_reputation100,388,692,638,882
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,685,605
net_rshares0
@holger80 ·
$0.03
You can check your permissions here:
https://hiveblocks.com/@bashadow
👍  , , ,
properties (23)
authorholger80
permlinkre-bashadow-q88bzc
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 20:41:45
last_update2020-04-03 20:41:45
depth2
children3
last_payout2020-04-10 20:41:45
cashout_time1969-12-31 23:59:59
total_payout_value0.015 HBD
curator_payout_value0.015 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation358,857,509,568,825
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,697,354
net_rshares151,877,200,483
author_curate_reward""
vote details (4)
@bashadow ·
Thank you, I thought I had seen it somewhere, but so many book marks I lost it. Now I have it bookmarked in peakd
properties (22)
authorbashadow
permlinkre-holger80-q88k6m
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 23:35:03
last_update2020-04-03 23:35:03
depth3
children2
last_payout2020-04-10 23:35:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation100,388,692,638,882
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,699,002
net_rshares0
@holger80 ·
You can check your permissions here:
https://hiveblocks.com/@bashadow
👍  , ,
properties (23)
authorholger80
permlinkre-bashadow-q88bzn
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 20:38:12
last_update2020-04-03 20:38:12
depth2
children0
last_payout2020-04-10 20:38:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation358,857,509,568,825
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,697,320
net_rshares44,311,906,299
author_curate_reward""
vote details (3)
@bobskibob · (edited)
yes there is a need for this . i also want to change my account recovery, but don't know who to change it to. 

maybe a one time payment fee . or if you or someone else commits to it a dao proposal 5sbd a day 
👍  
properties (23)
authorbobskibob
permlinkre-holger80-q86mk1
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-02 22:31:15
last_update2020-04-02 22:32:00
depth1
children0
last_payout2020-04-09 22:31:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length209
author_reputation9,906,780,416,788
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,685,413
net_rshares371,639,569
author_curate_reward""
vote details (1)
@detlev ·
Thanks @holger80 removed a lot and will change the recovery acc.
properties (22)
authordetlev
permlinkre-holger80-q8dz37
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-06 21:45:12
last_update2020-04-06 21:45:12
depth1
children0
last_payout2020-04-13 21:45:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length64
author_reputation1,707,195,232,946,208
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,736,840
net_rshares0
@joelingo ·
Thank you oh so very much! This is exactly what I was looking for today!!!

Problem solved:)
properties (22)
authorjoelingo
permlinkq86s68
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2020-04-03 00:32:36
last_update2020-04-03 00:32:36
depth1
children0
last_payout2020-04-10 00:32:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation4,125,864,249,402
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,686,212
net_rshares0
@libert ·
Something simple? Lol
properties (22)
authorlibert
permlinkq88y4c
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2020-04-04 04:36:15
last_update2020-04-04 04:36:15
depth1
children0
last_payout2020-04-11 04:36:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation19,208,620,620,574
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,701,137
net_rshares0
@rishi556 ·
I need to change mine. Will you be helping other with @recovery.account? I changed mine the last time I took a loan from @neoxian to him and haven't changed back since.
properties (22)
authorrishi556
permlinkre-holger80-q86q0j
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-02 23:45:57
last_update2020-04-02 23:45:57
depth1
children1
last_payout2020-04-09 23:45:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length168
author_reputation132,030,433,979,940
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,685,889
net_rshares0
@holger80 ·
Yes, I'm willing to help. I created a new discord channel for this:
https://discord.gg/Ae6mUwX
Maybe a discord bot with HIVE transfer to register can be used? I have to think about this. 
👍  , ,
properties (23)
authorholger80
permlinkre-rishi556-q88e03
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 21:21:45
last_update2020-04-03 21:21:45
depth2
children0
last_payout2020-04-10 21:21:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length187
author_reputation358,857,509,568,825
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,697,713
net_rshares42,853,891,922
author_curate_reward""
vote details (3)
@rockor ·
For perfect security reason
properties (22)
authorrockor
permlinkre-holger80-q87his
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.14"}
created2020-04-03 09:40:33
last_update2020-04-03 09:40:33
depth1
children0
last_payout2020-04-10 09:40:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation8,978,993,139,136
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,690,337
net_rshares0
@theskmeister ·
Thank you, really useful indeed.
properties (22)
authortheskmeister
permlinkq88sys
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2020-04-04 02:44:51
last_update2020-04-04 02:44:51
depth1
children0
last_payout2020-04-11 02:44:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation5,249,999,792,859
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,700,343
net_rshares0
@zdigital222 ·
thank you..
properties (22)
authorzdigital222
permlinkre-holger80-2021217t93848374z
categoryhive
json_metadata{"tags":["hive","beem","python","development"],"app":"ecency/3.0.13-vision","format":"markdown+html"}
created2021-02-17 01:38:51
last_update2021-02-17 01:38:51
depth1
children0
last_payout2021-02-24 01:38:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation-16,896,317,633,211
root_title"How to review account permissions and change your recovery account"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,914,743
net_rshares0