I m writing a little script to check if a directory is world writable or not.
this is what i have achieved.
# find /tst -xdev -type d \( -perm -0002 -a ! -perm -1000 \)
this works well for directories who have set as world writable bit on by following.
However above code doesn't work for /tmp as it is also world writable.