If the operating system user is not the database user, you can provide a database user name and password respectively with the -un and -up options.
fgldbsch -db test1 -un scott -up fourjs