AmphibiaWeb / amphibian-disease-tracker

Amphibian Disease Tracker Portal
GNU General Public License v3.0
6 stars 0 forks source link

Add additional blackbox admins #4

Open tigerhawkvok opened 9 years ago

tigerhawkvok commented 9 years ago

@mkoo , @JoyceGross

Add yourself to the keyring as per this link. When you've done so, I can re-encrypt the files for your guys.

JoyceGross commented 9 years ago

Sorry for stupid questions, but is this the blackbox_addadmin command that I should run? /usr/local/web/amphibiaweb_disease/meta/blackbox/bin/blackbox_addadmin I'm assuming I should run this on annie.

tigerhawkvok commented 9 years ago

@JoyceGross That's the correct one, but on any machine that you generate a PGP key for (that you consider secure).

I just think it's a bad idea for all the encrypted config data to be with any one person, you know, in case I get hit by a bus crossing the street tomorrow!

JoyceGross commented 9 years ago

Let's try not to get run over by any buses......

Any advice about this error? (which I got after a couple of permissions errors, which I fixed by changing file/directory permissions to group writable)

[joyceg@annie bin]$ ./blackbox_addadmin joyceg@berkeley.edu gpg: keyring /usr/local/web/amphibiaweb_disease/keyrings/live/secring.gpg' created gpg: no writable keyring found: Unknown system error gpg: error reading/tmp/tmp.Jy4rTMmxOC': General error gpg: import from `/tmp/tmp.Jy4rTMmxOC' failed: General error gpg: Total number processed: 0

I ran "gpg --gen-key" before all of the above, and it created a .gnupg directory in my home directory with some files but nothing named "key":

[joyceg@annie .gnupg]$ ls -l * -rw------- 1 joyceg joyceg 7856 Sep 23 21:49 gpg.conf -rw------- 1 joyceg joyceg 1192 Sep 23 21:57 pubring.gpg -rw------- 1 joyceg joyceg 1192 Sep 23 21:57 pubring.gpg~ -rw------- 1 joyceg joyceg 600 Sep 23 21:57 random_seed -rw------- 1 joyceg joyceg 2570 Sep 23 21:57 secring.gpg -rw------- 1 joyceg joyceg 1280 Sep 23 21:57 trustdb.gpg

private-keys-v1.d: total 0

Sorry, this is all new to me and I don't have blackbox running anywhere except on annie (where you put it) so that's what I'm using.

tigerhawkvok commented 9 years ago

Ahhhhh, you'll need to run it from the root of the repo.

On Thu, Sep 24, 2015, 14:21 JoyceGross notifications@github.com wrote:

Let's try not to get run over by any buses......

Any advice about this error? (which I got after a couple of permissions errors, which I fixed by changing file/directory permissions to group writable)

[joyceg@annie bin]$ ./blackbox_addadmin joyceg@berkeley.edu gpg: keyring /usr/local/web/amphibiaweb_disease/keyrings/live/secring.gpg' created gpg: no writable keyring found: Unknown system error gpg: error reading/tmp/tmp.Jy4rTMmxOC': General error gpg: import from `/tmp/tmp.Jy4rTMmxOC' failed: General error gpg: Total number processed: 0

I ran "gpg --gen-key" before all of the above, and it created a .gnupg directory in my home directory with some files but nothing named "key":

[joyceg@annie .gnupg]$ ls -l * -rw------- 1 joyceg joyceg 7856 Sep 23 21:49 gpg.conf -rw------- 1 joyceg joyceg 1192 Sep 23 21:57 pubring.gpg -rw------- 1 joyceg joyceg 1192 Sep 23 21:57 pubring.gpg~ -rw------- 1 joyceg joyceg 600 Sep 23 21:57 random_seed -rw------- 1 joyceg joyceg 2570 Sep 23 21:57 secring.gpg -rw------- 1 joyceg joyceg 1280 Sep 23 21:57 trustdb.gpg

private-keys-v1.d: total 0

Sorry, this is all new to me and I don't have blackbox running anywhere except on annie (where you put it) so that's what I'm using.

— Reply to this email directly or view it on GitHub https://github.com/AmphibiaWeb/amphibian-disease-tracker/issues/4#issuecomment-143054194 .

-via Nexus 5-


Philip Kahn 1314 Hopkins St Berkeley CA 94702

510.859.3142

JoyceGross commented 9 years ago

Assuming you mean run it in /usr/local/web/amphibiaweb_disease, I get the same error there:

[joyceg@annie amphibiaweb_disease]$ pwd /usr/local/web/amphibiaweb_disease

[joyceg@annie amphibiaweb_disease]$ meta/blackbox/bin/blackbox_addadmin joyceg@berkeley.edu gpg: no writable keyring found: Unknown system error gpg: error reading /tmp/tmp.8D2jvaJKxo': General error gpg: import from/tmp/tmp.8D2jvaJKxo' failed: General error gpg: Total number processed: 0

If I just run it without the path specified (as in the example at the link above), I get an error because blackbox_addadmin is not in my path.

[joyceg@annie amphibiaweb_disease]$ blackbox_addadmin joyceg@berkeley.edu -bash: blackbox_addadmin: command not found