title: Bash add SFTP user, home directory, and chmod it
body: <p>So i've gotten this far, but it doesn't work. it says </p>
  
  <pre><code>Changing directory to /var/www/sftp...
  : No such file or directoryar/www/sftp
  Making user directory...
  mkdir: cannot create directory ‘luna\r’: File exists
  Making public_html directory...
  mkdir: cannot create directory ‘public_html\r’: File exists
  Copying preset index...
  cp: cannot stat '../../index.html': No such file or directory
  chmoding public_html directory...
  </code></pre>
  
  <p>Now for the code, i've written...</p>
  
  <pre><code>echo Changing directory to /var/www/sftp...
  cd /var/www/sftp
  echo Making user directory...
  mkdir $1
  cd $1
  echo Making public_html directory...
  mkdir public_html
  cd public_html
  echo Copying preset index...
  cp ../../index.html ./index.html
  echo chmoding public_html directory...
  chmod 777 ../public_html
  </code></pre>
  
  <p>For the output i included the second version because it creates the directory "luna\r" not "luna". Also the echo before the cd was an attempt to fix the issue with cd where for whatever reason it's trying to change directory to "ar/www/sftp"</p>