Hi Jim,
In recent versions the user manager is caching user accounts in the running process memory. When you run the `velociraptor user add --role=investigator "user" "password"` command it writes the user records in the filestore but the user manager is not seeing those updates immediately.
This is the same reason you can not generally just modify the underlying files an app is running on without notifying the app. If you restart the service, the user manager will pick up the new accounts but until then there is no way to notify it of changes in storage.
This is the reason that it is now recommended to add/remove user accounts via the API or VQL function in the notebook (or indeed the GUI) because this properly notifies the user manager of changes which are immediately visible. Same goes for most other changes including ACLs
to see how to call the API from the shell. We should probably just remove the `user add` command from the command line or maybe add a warning that changes will not be visible until service restart.
Thanks
Mike
| Mike Cohen Digital Paleontologist, Velocidex Enterprises |
| | | | |
|
|