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

ignition: user creation no longer also creates group #1787

Closed
euank opened this issue Feb 1, 2017 · 1 comment
Closed

ignition: user creation no longer also creates group #1787

euank opened this issue Feb 1, 2017 · 1 comment

Comments

@euank
Copy link
Contributor

@euank euank commented Feb 1, 2017

Issue Report

Bug

Container Linux Version

$ cat /etc/os-release
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1298.1.0
VERSION_ID=1298.1.0
BUILD_ID=2017-01-20-0552
PRETTY_NAME="Container Linux by CoreOS 1298.1.0 (Ladybug)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"

Environment

GCE

Expected Behavior

Creating a user with ignition also creates a group with the same name

Actual Behavior

It worked up until 1284. Post-1284 (with the shadow-4.4 update presumably), a group is no longer created.

Reproduction Steps

  1. Boot a machine using the following user-data: {"ignition":{"version":"2.0.0","config":{}},"storage":{},"systemd":{},"networkd":{},"passwd":{"users":[{"name":"foo","create":{}}]}}
  2. grep foo /etc/group
@dm0-
Copy link

@dm0- dm0- commented Feb 8, 2017

This is from a shadow commit that loads the default configuration files before changing into the target root directory. This change in behavior in shadow probably wasn't intentional, but I've updated our initramfs anyway at coreos/bootengine#102 to carry the same defaults for useradd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.