name2 is from your original post. I didn't enter a script to run but an example of the commands to run in the terminal.
Since you are copying into several users' home directories, you will need to run the cp command as root.
1) The first argument of cp is the file to copy. If you are copying a directory, then use the -r flag. It is to recurse through the source, not the destination. Be in the same directory as the source file, or include the path to it in the filename.
2) Wildcards are expanded before the command is run. /home/*/*/dir1 will expand to a list of directories named "dir1" two levels deep from each users home directory. Such as /home/mike/www/dir1/ for example. I think it would be better to explicitly give which directory it is, and use a variable for the user name:
for user in sam mike sally ted; do
sudo cp file /home/$user/www/dir1/
Or if more than a few users:
for homedir in /home/*; do
sudo cp file $homedir/http/dir1/
Use the particular subdirectories you
need, and watch what you do.