Need Script to check whether user exists in the remote machine

Hi All,

I am new to shell scripting.

Can someone let me know, how to check whether the user exists in the remote system?

I am building a new unix box and before I proceed installing the appliation , I want to check whether the required users are created in the system .

how to do this ?

Any help is appreciated ..

Thanks
Srini

If it is a new box then probably the account isn't there unless you are using a default account (such as root) or you are using a name service such as NIS. Check /etc/passwd for the account as a start.