/usr/sbin/fai-statoverride is in fai-client 5.3.6ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #! /bin/bash
# override owner and mode of a file or directory
# call dpkg-statoverride with multiple files,
# this command is idempotent
# copyright Thomas Lange, Uni Koeln, 2005-2015
err=0
owner=$1;shift
group=$1;shift
mode=$1;shift
for f in $* ;do
$ROOTCMD dpkg-statoverride --list | grep -q " $f"
if [ "$?" -eq 1 ]; then
echo "Overriding owner and mode: $owner $group $mode $f"
$ROOTCMD dpkg-statoverride --update --add $owner $group $mode $f
if [ $? -ne 0 ]; then
err=1
fi
fi
done
exit $err
|