<p>Ok I am an idiot for asking and answering this,but I am doing it anyways in case somebody stumbles in the same problem.</p>
<p>The folder for the keys needs to be created in the the directory where the node is in. In my case Cardano.</p>

CC BY-SA 4.0
2021-05-29T01:04:23.480Z
Your "policy" directory is owned by the root user, since you used `sudo mkdir policy`. No need to use sudo to make directories in your home folder, you can either remove and re-create "policy" without sudo, or change the owner with `sudo chown -R <username> <directory>`
Ben NOBLE
CC BY-SA 4.0
2021-05-28T22:42:02.273Z
2021-05-28T22:42:02.273Z
h1ddenproc3ss
<p>I feel like an idiot but I am stuck at creating the keys for a token.</p>
<p>Here is the code:</p>
<blockquote>
<p>cardano@transmission:/home/transmission/Documents$ sudo mkdir policy &amp;&amp; cd policy</p>
</blockquote>
<blockquote>
<p>cardano@transmission:/home/transmission/Documents/policy$ cardano-cli address key-gen <br />
--verification-key-file policy.vkey <br />
--signing-key-file policy.skey</p>
</blockquote>
<blockquote>
<p>Command failed: address key-gen  Error: policy.skey: policy.skey: openBinaryFile: permission denied (Permission denied)</p>
</blockquote>
<p>Do you have any idea why I am being denied permission for this command?</p>
<p>Thank you very much!</p>

<nft><cardano-cli><minting>
Stuck at Creating Keys for Token - cardano-cli address key-gen
# Stuck at Creating Keys for Token - cardano-cli address key-gen

(Asked by: username_0 on 2021-05-28)

I feel like an idiot but I am stuck at creating the keys for a token.

Here is the code:

> cardano@transmission:/home/transmission/Documents$ sudo mkdir policy && cd policy

> cardano@transmission:/home/transmission/Documents/policy$ cardano-cli address key-gen   
> --verification-key-file policy.vkey   
> --signing-key-file policy.skey

> Command failed: address key-gen Error: policy.skey: policy.skey: openBinaryFile: permission denied (Permission denied)

Do you have any idea why I am being denied permission for this command?

Thank you very much!

**Tags:** nft, cardano-cli, minting

---

## 1 answers

### Answer by username_0 on 2021-05-28. Score: 3

Ok I am an idiot for asking and answering this,but I am doing it anyways in case somebody stumbles in the same problem.

The folder for the keys needs to be created in the the directory where the node is in. In my case Cardano.

> **Comments:**
> **username_1**: Your "policy" directory is owned by the root user, since you used `sudo mkdir policy`. No need to use sudo to make directories in your home folder, you can either remove and re-create "policy" without sudo, or change the owner with `sudo chown -R <username> <directory>`  

---

