check-public-dir-owned.sh 110B

12345
  1. #!/bin/bash
  2. if [ $(find / -xdev -type d -perm -0002 -uid +499 -print | wc -l) -gt 0 ];then
  3. exit 1
  4. fi