algo icon indicating copy to clipboard operation
algo copied to clipboard

Cannot add users

Open dkim19375 opened this issue 2 years ago • 1 comments

Describe the bug

I can't add users even though I have put "yes" when it asked if I wanted to retain the keys (PKI).

sudo ./algo update-users: https://paste.helpch.at/esamofused (ends up generating a bunch of files anyways which I manually removed from the configs folder ./algo update-users: https://paste.helpch.at/zenapiheyo.md (doesn't end up generating any other files though unlike the sudo command)

Notes:

  • I am able to create files without root/sudo in the configs directory, tested where the error says where the file is missing
  • As stated above, no files (as far as I know) were generated when not running as sudo, so those files are indeed missing when not running as sudo, but those files are not missing when running as sudo which is why those two commands give different errors

Ubuntu 20.04, aarch64/arm64, local install

To Reproduce

Steps to reproduce the behavior:

  1. Deploy the Algo server
  2. Edit the config.cfg and add new users (two new users in my case)
  3. Run either sudo ./algo update-users or ./algo update-users in order to attempt to add new users

Expected behavior The errors listed above show

Update I've tried to do: https://github.com/trailofbits/algo/issues/1067#issuecomment-436821898 but it does not work, but it gives a different error (will update this issue soon with the new error if I cannot fix)

dkim19375 avatar Nov 08 '22 04:11 dkim19375

Same thing here. Initital setup went smoothly (from my username, no sudo required). However adding users to config.cfg and running update_users ends with error (sudo requires password). Running update_users with sudo creates config files accessible by root only. Not very useful. Any hint is appreciated.

DerAlSem avatar Mar 27 '23 09:03 DerAlSem