Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

SSH_USER_ID dont change UID #596

Open
citronbleuv opened this issue Nov 29, 2018 · 4 comments
Open

SSH_USER_ID dont change UID #596

citronbleuv opened this issue Nov 29, 2018 · 4 comments
Labels

Comments

@citronbleuv
Copy link

If I add the environment variable to SSH_USER_ID="33:33".
The uid and gid used is always 500:500.

@jdeathe
Copy link
Owner

jdeathe commented Nov 29, 2018

@citronbleuv

Does the work-around provided in #472 suit your requirements?

I could consider making changes to allow specifying system id values however this would shift additional responsibility onto the operator to ensure they selected appropriate values. In the CentOS-7 based images system id numbering actually starts from 1000 not 500 so I could consider this change if the work-around isn't appropriate.

@citronbleuv
Copy link
Author

Hello @jdeathe,

In work-around, I created a simple Dockerfile like this :

FROM jdeathe/centos-ssh:2.4.1
RUN useradd -g 33 -u 33 myuser

That work.

Better again I think like work-around, is to use the args of docker-compose https://docs.docker.com/compose/compose-file/#args to have the UID and GID in docker-compose. No test this.

@jdeathe
Copy link
Owner

jdeathe commented Nov 30, 2018

@citronbleuv

I've opened #597 and #598 which will open up the range of values that can be set via SSH_USER_ID in the next release.

@jdeathe
Copy link
Owner

jdeathe commented Jan 28, 2019

@citronbleuv

Today I've released tags 1.10.0 / 2.5.0 that removes restrictions on the UID:GID values that can be configured via SSH_USER_ID and adds the special case of setting SSH_USER to "root".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants