#! /bin/bash

for name in tom jerry joe jane
do
    useradd $name
    echo redhat | passwd --stdin $name done