Am using the following command to add a user in Unix box
useradd -d <default_path> -g 90 -p <pwd for the user> <user_name>
But am getting an error while using this command by root user.Let me know if this cmd is right or else is there any other command to add a user in unix box.
Usually you can add users with useradd, but you'll need to change/set the password manually or use a different tool for that.
The fact that you're using -p indicates maybe a Linux box? What error are you getting? I tried your command on a linux box and it seems to work just fine.
Notes:
If the home directory does not exist you might need "-m" (Create home directory) switch.
Some versions of "useradd" need a value in "-c" (comment). It's usual to put the users real name here.
It may not be in your path, try 'whereis useradd' to find out where the executable is. Then run it directly, specifying the full path(such as /usr/sbin/useradd)