Cannot generate Happy Family key

Hello everyone,

I’m trying to configure Happy Families for the relays I admin, but I’m stuck at generating the key itself:

$ sudo -u debian-tor tor --keygen-family maxzrbn
...
May 24 11:42:25.607 [warn] Couldn’t open “maxzrbn.secret_family_key.tmp” (maxzrbn.secret_family_key) for writing: Permission denied
May 24 11:42:25.607 [warn] create_family_id_key(): Bug: Can’t write key to file. (on Tor 0.4.9.8 )

Permissions look good:

drwx–S— 2 debian-tor debian-tor 4096 22 mag 16.00 /var/lib/tor/keys

I even tried temporarily disabling AppArmor and the Tor daemon but no luck.

I’m afraid I’m missing something trivial but I can’t figure it out :confused:

Thanks,

Max

EDIT: nevermind I figured it out, I was assuming the key would be created inside the configured KeyDir, but instead the command tries to create the files in the current working directory, which in my case debian-tor had no write perms to.

I think it would be a good idea to mention this behaviour in the official HappyFamiles guide (and the tor manpages).

1 Like