Shaunn Johnson wrote:
>
> It's not so much the logic of the script that I'm concerned
> with, but the security part. For instance, sometimes if I
> create a user by hand, editing the /etc/passwd (using vipw)
> doesn't really edit the /etc/shadow file. I'm not sure why,
> either. It *should*.
In Bourne shell, you could do:
for i in `echo name_a name_b name_c name_d name_e name_f name_g`
do
echo "creating user account: $i"; passwd $i< secret_$i
done
--
In C-sh
foreach i (`echo name_a name_b name_c name_d name_e name_f name_g`)
echo "cre