check-sticky-bit.sh 107B

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