I accidentally added a user to my system without a home directory (I forgot to put the -d and -m flags in useradd). Rather than deleting the user and starting over I attempted to simply mkdir the home directory and copy over the files myself from /etc/skel. However, I received the following strange error:
user@host:~$ sudo cp -rv /etc/skel/* /home/newuser/
cp: cannot stat `/etc/skel/*': No such file or directory
However, the following two commands work as expected:
user@host:~$ sudo cp -rv /etc/skel/.bashrc /home/newuser/
user@host:~$ cp -rv ~/testfolder1/* /testfolder2/
Can anyone shed some light on why I received that initial error.