complete bash script that does office directory based on provided passwd file