Answers for "Ensure sticky bit is set on all world-writable directories"

0

Ensure sticky bit is set on all world-writable directories

# df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d 
-perm -0002 2>/dev/null | xargs chmod a+t
Posted by: Guest on April-24-2020
0

Ensure sticky bit is set on all world-writable directories

# df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d 
\( -perm -0002 -a ! -perm -1000 \) 2>/dev/null
Posted by: Guest on April-24-2020

Code answers related to "Ensure sticky bit is set on all world-writable directories"

Browse Popular Code Answers by Language