title: Create a SFTP user to access only one directory.
body: <p>I need to create a user which can only SFTP to specific directory and take a copy of some infomation. that is it. I keep looking online and they bring up information about chroot and modifying the the sshd_config.</p>
  
  <p>So far I can just</p>
  
  <ul>
  <li>add the user "useradd sftpexport" </li>
  <li>create it without a home directory "-M" </li>
  <li>set its login location "-d /u02/export/cdrs" (Where the information is stored)</li>
  <li>not allow it to use ssh "-s /bin/false"</li>
  </ul>
  
  <blockquote>
    <p>useradd sftpexport -M -d /u02/export/cdrs -s /bin/false</p>
  </blockquote>
  
  <p>Can anyone suggest what am meant to edit so the user can only login and copy the file off?</p>