Skip to content

Define the HOME environmental variable inside the Dockerfile (classic) to allow running rootless#612

Merged
rustdesk merged 1 commit into
rustdesk:masterfrom
Guiorgy:patch-1
Nov 22, 2025
Merged

Define the HOME environmental variable inside the Dockerfile (classic) to allow running rootless#612
rustdesk merged 1 commit into
rustdesk:masterfrom
Guiorgy:patch-1

Conversation

@Guiorgy

@Guiorgy Guiorgy commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

When running as a not-root user, the rendezvous server (hbbr) fails to create the config directory (#526): ERROR [libs/hbb_common/src/config.rs:538] Failed to store config: Failed to create directory.

The reason being that when using a non-root user, e.g. user: 1234, since it's missing in the /etc/passwd the home directory defaults to the root of the filesystem (/), but as the container is not running as root, it does not have permission to write there. /root is the mapped volume which the user is expected to have already set the correct permissions for the container to run, thus the simples workaround is setting the HOME variable to /root, where the .config directory can be created.

@rustdesk rustdesk merged commit 6b72cef into rustdesk:master Nov 22, 2025
@Guiorgy Guiorgy deleted the patch-1 branch November 22, 2025 09:20
carloscampano added a commit to carloscampano/rustdesk-server that referenced this pull request Jun 28, 2026
Backport: 3 mejoras de upstream oficial (fix rustdesk#435, connection-log query, rootless rustdesk#612)
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