Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow GID of existing groups, e.g. 0 #95

Closed
mbirth opened this issue Aug 28, 2024 · 0 comments · Fixed by #102
Closed

Allow GID of existing groups, e.g. 0 #95

mbirth opened this issue Aug 28, 2024 · 0 comments · Fixed by #102
Assignees
Labels
enhancement New feature or request

Comments

@mbirth
Copy link

mbirth commented Aug 28, 2024

I have some other container that works with its user (with UID 1001) in the root group, GID 0.

When trying to set GID=0 for your ftp container, it first tries to create a group with -g 0 and name $FTP_USER, which fails as a group with that GID already exists with the name root.

However, in the next step, it tries to assign a group named $FTP_USER to the user. Since the previous step failed, there is no group with that name and the creation of the user also fails.

Please add something like a lookup for the group name, e.g.:

GRP = $(getent group $GID | awk -F ':' '{print $1}')

You can then assign the group name $GRP to the user creation command.

@garethflowers garethflowers self-assigned this Jan 3, 2025
@garethflowers garethflowers added the enhancement New feature or request label Jan 3, 2025
@garethflowers garethflowers linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants