On Thu, Jan 03, 2008 at 02:12:27PM +0100, Michael Westermann wrote:
> Mein Probem ist wenn ein neuer Nutzer im ldap angelegt wird, der hat
> noch kein homedir im "/home". Normalerweise ist das kein Problem. Aber
> da der Nutzer sich nicht direkt am Maiserver anmeldet gibts auch kein
> Homeverzeichniss.
> Wenn ich den Nutzer einmal anmelde tut es ja. 

Was spricht gegen ein simples shell script was einfach regelmaessig
guckt ob alle user homedirs existieren ?

So in dieser art - Cronjob und gut ist ...

        ldapsearch homedir | while read line; do
                p=`echo $line | sed -e 's/homedir: //'`;
                if [ ! -d ${p} ]; then
                        mkdir ${p}
                fi
        done

Flo
-- 
Florian Lohoff                  [EMAIL PROTECTED]             +49-171-2280134
        Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

-- 
Linux mailing list [email protected]
subscribe/unsubscribe: http://lug-owl.de/mailman/listinfo/linux
Hinweise zur Nutzung: http://www.lug-owl.de/Mailingliste/hints.epo

Antwort per Email an