login error as root

Hi i am using sun netra20 server ruuning solaris 9 and while i trying to login as root its showing error as shown below.

SunOS 5.9
login:root
password:
Not on system console
Connection to system closed by foreign host

But i can login as scadm and su to root...then it is goin to root prompt....
pls help

I haven't migrated to Solaris 9, but in Solaris 8 root access is limited by /etc/default/login. There is a parameter:

CONSOLE=/dev/console

That allows root initial login to the system only from that device -- in this case, the console. If you comment out that line by placing a '#' in front of it and sae the file, root can log in from across the network.

#CONSOLE=/dev/console

This is not usually a good idea but the ramifications are far beyond the scope of this reply. Good luck.