Actions
Bug #26823
open“Users” standard technique : Fails setting secondary groups when already correct.
Status:
Pending technical review
Priority:
To review
Assignee:
Category:
Techniques
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
The “Users” standard technique fails (only) setting secondary groups when already correct.
- Given a directive that only updates the user when it exists, and only sets a series of secondary groups for the user.
- The directive fails with a funny :
E| error userManagement User secondary groups michel User michel was already in the secondary groups 'uucp,users,games,vboxusers,x2gouser,x2goprint,x2godesktopsharing'. Configuration for user michel could not be repaired <pre> - Runnin the agent with "-i" shows : <pre> info userManagement User secondary groups michel Secondary group uucp for user michel was correct info userManagement User secondary groups michel Secondary group users for user michel was correct 2025-04-29T06:22:23+00:00 rudder info: Executing 'no timeout' ... '${paths.usermod} -a -G games michel' 2025-04-29T06:22:23+00:00 error: Finished command related to promiser '${paths.usermod} -a -G games michel' -- an error occurred, returned 127 2025-04-29T06:22:23+00:00 notice: Q: "...s.usermod} -a -": sh: line 1: ${paths.usermod}: bad substitution 2025-04-29T06:22:23+00:00 rudder info: Last 1 quoted lines were generated by promiser '${paths.usermod} -a -G games michel' 2025-04-29T06:22:23+00:00 rudder info: Completed execution of '${paths.usermod} -a -G games michel' info userManagement User secondary groups michel Execute command ${paths.usermod} -a -G games michel could not be repaired info userManagement User secondary groups michel Secondary group vboxusers for user michel was correct info userManagement User secondary groups michel Secondary group x2gouser for user michel was correct info userManagement User secondary groups michel Secondary group x2goprint for user michel was correct info userManagement User secondary groups michel Secondary group x2godesktopsharing for user michel was correct E| error userManagement User secondary groups michel User michel was already in the secondary groups 'uucp,users,games,vboxusers,x2gouser,x2goprint,x2godesktopsharing'. Configuration for user michel could not be repaired E| compliant userGroupManagement Users michel The user michel ( Without any defined full name ) is already present on the system </pre> See attached screenshots for errors, directive, and compliance.
Files
Actions