Cut the first field (delimited by a colon) from the /etc/passwd file and use awk to loop through each field and add an asterisk to the beginning of each field, then print the result.
cut -d: -f1 /etc/passwd | awk 'BEGIN{FS=OFS=" "}{for(i=1;i<=NF;i++) $i="*"$i;print}'