On 6/8/05, Uwe Dippel <[EMAIL PROTECTED]> wrote: > What I'd want, is to check the passwd file and delete all home dirs that > have no user account any longer.
You can use find(1) -nouser for this. > Then, I'd also create home dirs for all users in the passwd without home > dir yet. Use awk that parses out the home directory from /etc/passwd and creates if it is missing. Something like this perhaps: cat /etc/passwd | awk -F: '{ if($3 > 1000) { print $6 } }' cheers, Nickus