Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Investigate approach with the entrypoint script injection to Che 7 images in the runtime to make the /etc/passwd writable for the arbitrary user #1455

Closed
ibuziuk opened this issue Jun 12, 2019 · 5 comments
Assignees

Comments

@ibuziuk
Copy link
Member

ibuziuk commented Jun 12, 2019

Investigate approach with the entrypoint script injection to make the /etc/passwd writable for the arbitrary user:

if ! whoami &> /dev/null; then
  if [ -w /etc/passwd ]; then
    echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd
  fi
fi
```


related to https://github.com/eclipse/che/issues/13454
@ibuziuk ibuziuk added this to the Sprint #168 (Che OSIO) milestone Jun 12, 2019
@amisevsk amisevsk self-assigned this Jun 13, 2019
@ibuziuk
Copy link
Member Author

ibuziuk commented Jul 10, 2019

Initial PR with patched Dockerfile has been merged to devfile registry eclipse-che/che-devfile-registry#24

@ibuziuk
Copy link
Member Author

ibuziuk commented Jul 10, 2019

PR for CI/CD setup - openshiftio/openshiftio-cico-jobs#1034

@ibuziuk
Copy link
Member Author

ibuziuk commented Jul 12, 2019

@amisevsk hope you will be able to add all the missing images to https://github.com/eclipse/che-devfile-registry/tree/master/arbitrary-users-patch

and take care of nighly CI - eclipse-che/che#13837

@amisevsk
Copy link
Collaborator

Closing as done

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

No branches or pull requests

2 participants