Displaying 1 result from an estimated 1 matches for "tmpeditor".
Did you mean:
hmeditor
2017 Jul 04
0
[PATCH] samba-tool: Easily edit a users object in AD V2 with test
...d prevent multiple
> parallel 'make test' runs on the same machine by different users. And
> also would allow an attacker (whoever that be) to rewrite your
> editor.sh and inject an execution into your 'make test' run.
>
> Instead, create a temporary file:
>
> tmpeditor=$(mktemp --suffix .sh samba-tool-editor-XXXXXXXX)
>
> And put the content into it:
>
> cat >$tmpeditor <<-'EOF'
> #!/usr/bin/env bash
> user_ldif="$1"
> SED=$(which sed)
> $SED -i -e 's/userAccountControl: 512/userAccountControl:
> 514...