freedombone/tests/check-world-writable.sh

6 lines
94 B
Bash

#!/bin/bash
if [ "$(find / -xdev -type f -perm -002 | wc -l)" -ne 0 ];then
exit 1
fi