Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
This repository was 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

Description

@ibuziuk

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions