Help me with console login problem

Hi,

I have solaris 10 installed on my computer and when try to login in console mode, it would give output something like this.

login:root
Password:
Last login: Thu May 29 10:00:55 on console
-sh: syntax error: `(' unexpected
-sh: grep: not found
-sh: uname: not found
-sh: test: argument expected
# ls
ls: not found
# clear
clear: not found
#

As you can see none of the commands work in this mode.

can someone tell me where I'm goin worng?

Thanks,
Sunny

You have errors in your root's .profile and make sure your path is being set correctly.