Check if a user in group exists
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Hello! I have hard coded for add a user in group. How to check by 'ifvarclass' (or any), that a user in group exist and don't run the command 'usermod'? command: "/usr/sbin/usermod -a -G $(group_index) $(user_index)"; -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/fdc287e3-d1fa-4eb4-8a4f-f3e4222c5fd3n%40googlegroups.com.