mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
9 lines
226 B
Bash
Executable File
9 lines
226 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cp /etc/security/audit_control ./tmp.txt;
|
|
origFlags=$(cat ./tmp.txt | grep flags: | grep -v naflags);
|
|
sed "s/${origFlags}/flags:-fm,ad,-ex,aa,-fr,lo,-fw/" ./tmp.txt > /etc/security/audit_control;
|
|
rm ./tmp.txt;
|
|
|
|
|