Skip to content

build(transmission): create the transmission user explicitly - #76

Merged
opencode-collom[bot] merged 5 commits into
mainfrom
fix/transmission-image
Nov 5, 2026
Merged

opencode-collom[bot] merged 5 commits into
mainfrom
fix/transmission-image

Conversation

@opencode-collom

Copy link
Copy Markdown
Contributor

The transmission image does not build, and it could not work if it did:

chown: unknown user transmission.

The Alpine transmission package creates the transmission user and group in
transmission-daemon.pre-install, but that script redirects the output of both
addgroup and adduser to /dev/null and always exits 0. The package therefore
installs "successfully" even when the user was never created, and the image then
fails on chown -Rh transmission. $dir.

The user is not optional: the entrypoint starts the daemon with
su -l transmission -s /bin/bash -c "exec transmission-daemon ...".

The user and the group are now created explicitly in the image, so it no longer
depends on a package side effect that fails silently. The home directory is still
moved to /var/lib/transmission-daemon and set with usermod, so the layout the
daemon expects is unchanged.

The Alpine transmission package creates the 'transmission' user and group in
transmission-daemon.pre-install, but that script redirects the output of both
addgroup and adduser to /dev/null and always exits 0. The package therefore
installs 'successfully' even when the user was never created, and the image
then fails with

    chown: unknown user transmission.

The image cannot work without that user either: the entrypoint starts the
daemon with 'su -l transmission'.

The user and the group are now created explicitly, and the home directory is
still moved to /var/lib/transmission-daemon and set with usermod, so the image
no longer depends on the package's pre-install side effect.
@opencode-collom
opencode-collom Bot merged commit 7fd9f1a into main Nov 5, 2026
2 checks passed
@opencode-collom
opencode-collom Bot deleted the fix/transmission-image branch November 5, 2026 13:32
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.

0 participants