title: sudo useradd wont make home directory
body: <p>I have an automatic script which works, only it just never makes a home directory. The data is extracted from a database. </p>
  
  <p>Heres the script:</p>
  
  <pre><code>$SQL -s -e "SELECT uid, password FROM registrations WHERE processed = 0"   \
  |  while read A B; do
          sudo useradd   $A -p $B -m /home/
  </code></pre>
  
  <p>as you can see the <code>-m</code> is there, but it seems to ignore it and never make a home directory and I have no idea why. I must be missing something but i've no idea what</p>