syslog.warten.de

94

#!/bin/bash
for DIR in /data/*
do
    PERM=`ls -ld ${DIR} | cut -f1 -d" "`
     if [ ${PERM} != "drwxrwxrwx" ]
     then
         chmod 777 ${DIR}
    fi
done