4

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!

1 Answer 1

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.

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>
    – Ben NOBLE
    Commented May 29, 2021 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.