Add the user names after “DenyUsers” string which you want disable .
Example :
DenyUsers ftpuser fdpuser2
2.) Restart the ssh service
For Solaris 10
--------------
svcadm refresh svc:/network/ssh:default
For Solaris 7,8 & 9
------------------
/etc/init.d/sshd restart