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

Inject /etc/passwd and friends instead of .scubainit #24

Merged
merged 5 commits into from
Jan 8, 2016

Conversation

JonathonReinhart
Copy link
Owner

Instead of injecting .scubainit and starting the container with /bin/sh /.scubainit, this will:

  • Inject /etc/passwd, /etc/group, and /etc/shadow files with scubauser added
  • Go back to starting the user-command directly

This fixes #21 and #22.

The unfortunate part of this fix is that it removes the setting of umask, introduced in v1.3.0 by #16, because we no longer have a .scubainit.

JonathonReinhart and others added 4 commits January 8, 2016 08:56
This is to avoid the fact that .scubainit uses `su -c` to run the user
command as scubauser, but now it is no longer PID 1.

This fixes #22.
This adds a proper /etc/shadow entry as well, fixing the
"Authentication error\n(ignored)" from su.

This fixes #21.
- `shell_quote` was only used for generating .scubainit
- `get_image_command` was only needed because we were launching
  .scubainit instead of the usercmd
- `get_umask` was used to set the umask in .scubainit, which is
  unfortunately not possible now
JonathonReinhart added a commit that referenced this pull request Jan 8, 2016
Inject /etc/passwd and friends instead of .scubainit
@JonathonReinhart JonathonReinhart merged commit 97cba4a into master Jan 8, 2016
@JonathonReinhart JonathonReinhart deleted the inject-etc-passwd branch January 8, 2016 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"su: Authentication failure" in Debian image
1 participant