changing passwords remotely on sun boxes

now, for reasons i really cant begin to delve into, i have to find a way to be able to rmeotely create user accounts and also assign them passwords. unfortunately, it appears Sun boxes frowns upon this. sun boxes will let u create a user account remotely but will never let u assign the useraccount a password.

how can i make this happen?

ssh rocket 'useradd johndoe' <------ This works.

ssh rocket 'passwd johndoe' <------- This DOESN'T work.

I get "Permission Denied"

does anyone know of a way to get around this?