feat: Add optional option to define a home directory for users created with users.conf #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch aims to add the optional option to define a home directory for users created using the
users.conf
.It attempts to do so in a backwards compatibly way by adding the
homedir
field at the end of theusers.conf
line, in doing so however breaks support for passwords containing:
.If not set the home directory in
HOME_DIR
is used, this variable was added to the Dockerfile and is also used to for the single user mode and defaults to the existing value of/tmp
. Furthermore the home directory is now created if not already present.This would allow the use of e.g. the samba
homes
share where each user accesses their own home directory, currently all users use/tmp
as home directory.