Why not simply undefining YPDOMAIN if you don't want NIS ? BTW, does this patch actually work ? It seems you are using csh syntax in a sh script Stephane