File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
shared/templates/file_owner Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2222 {{%- else %}}
2323 {{%- for own in OWNERS %}}
2424 <unix:password_object id="object_file_owner{{{ FILEID }}}_{{{ own }}}_uid" version="1">
25- <unix:username operation="pattern match ">{{{ own }}}</unix:username>
25+ <unix:username operation="equals ">{{{ own }}}</unix:username>
2626 </unix:password_object>
2727 <local_variable id="var_file_owner{{{ FILEID }}}_{{{ own }}}_uid" comment="Retrieve the uid of {{{ own }}}" datatype="int" version="1">
2828 <object_component item_field="user_id" object_ref="object_file_owner{{{ FILEID }}}_{{{ own }}}_uid" />
Original file line number Diff line number Diff line change 22{{%- if NO_REMEDIATION %}}
33# remediation = none
44{{%- endif %}}
5+
56useradd testuser_123
7+
8+ {{% set OWNERS=UID_OR_NAME.split(" |" ) %}}
69{{%- for own in OWNERS %}}
710id " {{{ own }}}" & > /dev/null || useradd {{{ own }}}
811{{%- endfor %}}
You can’t perform that action at this time.
0 commit comments