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

ncm-accounts: Validate shell against /etc/shells #1515

Open
Gargravarr2112 opened this issue Jun 23, 2021 · 0 comments
Open

ncm-accounts: Validate shell against /etc/shells #1515

Gargravarr2112 opened this issue Jun 23, 2021 · 0 comments

Comments

@Gargravarr2112
Copy link
Contributor

It is possible to specify an invalid path to a shell for a user on a configured machine, either with a typo or a shell that isn't installed. Linux includes /etc/shells for a list of valid shells on the local system, which local account management will check against. It may be useful to do the same in NCM.

  • The version of the component: ncm-accounts 19.12.0-1
  • What OS version: Scientific Linux 7.9
  • How to reproduce: Include accounts configuration and create a new account with an invalid path to a shell
  • Actual result: Invalid shell is accepted and inserted into /etc/passwd on the local system
  • Expected result: Error is reported that the shell does not exist on the local system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant