Fixed bugs with nxUser where if FullName and Description fields are provided in the mof file of a custom package, Start-GuestConfigurationPackageRemediation fails because the useradd command that is created is invalid.
Command before fix: useradd -d "/home/test" -c test user,,,,Some description, -U
There are two problems with this command.
The COMMENT string, after the -c flag, needs to be in quotes. Otherwise, we see an error: "Missing expression after ',' in pipeline element."
There is an extra comma after the Description because when parsing /etc/passwd, nxLocalUser is expecting 5 comma-separated GECOS fields, not 6.
[x] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
Pull Request (PR) description
Fixed bugs with nxUser where if FullName and Description fields are provided in the mof file of a custom package, Start-GuestConfigurationPackageRemediation fails because the useradd command that is created is invalid.
Command before fix: useradd -d "/home/test" -c test user,,,,Some description, -U
There are two problems with this command.
Command after fix: useradd -d "/home/test" -c "test user,,,,Some description" -U
This Pull Request (PR) fixes the following issues
None
Task list