lima-vm / lima-vm/lima

Add configuration option to add user to one or more groups.

Open
#1,686 12 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

It would be nice to have an option in the configuration YAML to add the (non-root) user to one or more groups.

In my specific use-case, I'm trying to create a Debian Bookworm Podman instance and in order for `podman logs` to work properly the non-root user must be added to the `systemd-journal` group.

If you try to do this in the (`system` mode) provisioning script the `usermod` command will run after the user shell has already started and this (typically) requires the VM to be restarted for the change to take effect. If you try in the `boot` mode provisioning script, the user account has not been created yet.

See Discussion #691

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.