Skip to content

Detect which shell is installed and when adding users ensure they have a valid shell. #1819

@max-allan-cgr

Description

@max-allan-cgr

When creating users in apko, one can provide a users block:

accounts:
  groups:
    - groupname: nonroot
      gid: 10000
  users:
    - username: nonroot
      uid: 10000
  run-as: nonroot

But you might not have set the shell and maybe only bash is installed.

For most things, it will work. But the lack of the default shell, when a different shell is actually installed does cause very hard to find bugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions