#!/bin/sh /bin/touch /u/preport/preport /bin/touch /u/preport/zurueck /bin/touch /u/preport/erledigt /etc/chown -R preport.preport /u/preport/* /u/preport/.[a-zA-Z0-9_]* /bin/chmod -R go-rwx /u/preport/* /u/preport/.[a-zA-Z0-9_]* /bin/chmod 600 /u/preport/preport /bin/chmod 660 /u/preport/zurueck /bin/chmod 660 /u/preport/erledigt cd /u/preport /etc/chown preport.preport . /bin/chmod 750 . /bin/chmod ug+s . for i in helm tommy pichel bach alex dabe hebu joker schnagl blacky happy wunix susanne schuh olli do cd /u/$i /etc/chown $i.ti . /bin/chmod 755 . /bin/touch preport /etc/chown $i.ti preport /bin/chmod 660 preport done cd /u/rse /etc/chown rse.ti . /bin/chmod 755 . cd work /etc/chown rse.ti . /bin/chmod 750 . cd preport /etc/chown rse.ti . /bin/chmod 750 . /bin/touch preport /etc/chown rse.ti preport /bin/chmod 660 preport cd /u/wolfgang /etc/chown wolfgang.ti . /bin/chmod 755 . cd etc /etc/chown wolfgang.ti . /bin/chmod 750 . cd mail /etc/chown wolfgang.ti . /bin/chmod 750 . /bin/touch preport /etc/chown wolfgang.ti preport /bin/chmod 660 preport cd /u/dabe /bin/touch dbb /etc/chown dabe.ti dbb /bin/chmod 660 dbb for i in helm tommy pichel bach alex dabe hebu joker schnagl blacky happy wunix susanne schuh olli do cd /u/$i if [ -h erledigt ] then /bin/rm erledigt fi if [ -f erledigt ] then if [ -s erledigt ] then /bin/mv erledigt erledigt.old else /bin/rm erledigt fi fi if [ -h zurueck ] then /bin/rm zurueck fi if [ -f zurueck ] then if [ -s zurueck ] then /bin/mv zurueck zurueck.old else /bin/rm zurueck fi fi ln -s /u/preport/erledigt erledigt ln -s /u/preport/zurueck zurueck /etc/chown $i.ti erledigt /etc/chown $i.ti zurueck done