You need to metion in some file and Set environment variable CWCONFIGFILE to that file.
Example: If user name is admin and password is admin, create a file a.txt having admin admin as a single line entry into the file and suppose this file is present in \tmp then the environment variable is set as follows:
setenv CWCONFIGFILE /tmp/a.txt ( in Solaris)
set CWCONFIGFILE = C:\tmp\a.txt ( in Windows).
If you set this CWCONFIGFILE in some command prompt, please note that it will be applicable only to that command window. otherwise, you need to set this variable as a system variable.
For more inforamation you can use the command "man cwconfig" for more details.