Skip to content

FAQ: run password commands as evcc user#1085

Merged
naltatis merged 1 commit into
mainfrom
fix/faq-password-reset-sudo
Jun 12, 2026
Merged

FAQ: run password commands as evcc user#1085
naltatis merged 1 commit into
mainfrom
fix/faq-password-reset-sudo

Conversation

@andig

@andig andig commented Jun 12, 2026

Copy link
Copy Markdown
Member

pairs with evcc-io/evcc#30703

The documented password set/reset commands run evcc as the invoking login user. On package installs the database at /var/lib/evcc/evcc.db is owned by the evcc service user, so the database opens read-only and the command fails with "attempt to write a readonly database (8)".

Prefix the commands with sudo -u evcc and use the --database flag instead of the EVCC_DATABASE_DSN variable, since sudo's default env_reset policy does not pass command-line environment assignments without the SETENV tag.

@naltatis naltatis merged commit 6c1c44e into main Jun 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants