cd - go to the directory

can anybody give a shell script if i want to go to the directory of another user

To cd to other user directory, it all depend on the dir ownership and permission setting, if you are root, then u can cd to any directories...