-
Notifications
You must be signed in to change notification settings - Fork 17
Make target user detection explicit #186
Copy link
Copy link
Open
Labels
area:conf&buildtasks related to our configuration or build system (Makefile, Docker, scripts, commands)tasks related to our configuration or build system (Makefile, Docker, scripts, commands)fix:bugSomething isn't workingSomething isn't working
Description
Activity
Metadata
Metadata
Assignees
Labels
area:conf&buildtasks related to our configuration or build system (Makefile, Docker, scripts, commands)tasks related to our configuration or build system (Makefile, Docker, scripts, commands)fix:bugSomething isn't workingSomething isn't working
Summary
The installer currently uses
lognameto determine which user's home directory should receive the wallet configuration.This is fragile in non-login contexts such as cloud-init, automation, or some sudo environments. In those cases,
lognamecan fail or return a user that is not the intended operator account.Possible solution design or implementation
Make the target operator user explicit or more reliably derived.
For example, the installer could accept an optional
--userflag, and otherwise fall back to the current behavior or a documented default. The installer should print the selected user and home directory before making changes, so misconfiguration is visible.