running shell script from passwd file

"Clift, Tom CIV NSWCDD, K55" <[email protected]> Tue, 29 Jan 2013 13:26:47 -0500
Newsgroups gmane.os.solaris.managers
Message-ID <971E95E4-B025-43CB-874D-9DD69CEFFF82@mimectl>
 I am trying to run a shell script as the user's shell in the passwd file but
I get invalid shell when logging in on a Solaris 10 box. I remember doing this
a few years ago but doesn't seem to work now. Any ideas?