Skip to content

feat: new default shell /bin/nologin#1129

Open
DavidePrincipi wants to merge 2 commits intomainfrom
feat-7844
Open

feat: new default shell /bin/nologin#1129
DavidePrincipi wants to merge 2 commits intomainfrom
feat-7844

Conversation

@DavidePrincipi
Copy link
Copy Markdown
Member

  • create new modules with /bin/nologin, replacing old default /bin/bash
  • customize shell of newly added modules with node LOGIN_SHELL enviroment variable
  • document the new default shell and how to fix existing systems

Refs NethServer/dev#7844

- create new modules with /bin/nologin, replacing old default /bin/bash
- customize shell of newly added modules with node LOGIN_SHELL
  enviroment variable
- document the new default shell and how to fix existing systems
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the default login shell for newly created rootless module Unix users to a non-interactive shell, allows overriding it via an environment variable, and documents how to migrate existing systems accordingly.

Changes:

  • Set the default rootless module user shell to nologin during module creation, with optional override via LOGIN_SHELL.
  • Update documentation to describe the new default shell and provide an upgrade procedure for existing modules.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/modules/rootless_rootfull.md Documents the new default nologin shell and provides a migration command for existing modules.
core/imageroot/var/lib/nethserver/node/actions/add-module/50update Changes rootless module user creation to default to nologin, with optional LOGIN_SHELL override.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/imageroot/var/lib/nethserver/node/actions/add-module/50update Outdated
Comment thread core/imageroot/var/lib/nethserver/node/actions/add-module/50update
Comment thread docs/modules/rootless_rootfull.md

id -u

To protect against system configuration errors, starting with Core 3.20,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.19 or 3.20?

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.

7 participants