This is a quicky that I've barely tested (and used constant directory paths/names in), but this should be along those lines (except for the case of no configuration files, which I presume is an illegal state)

#in bash:
cd /etc/exim4
let MODE=`find .. -printf '0%m&'|sed 's/&$//'`\&0$CFILEMODE
chmod `printf %o`$MODE /var/lib/exim4/config.autogenerated



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to