<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">A while back, I had done this to
      restrict to a particular directory , but it may not be ideal for
      you as you already have some parent directories, but you can give
      a try :<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://www.amitnepal.com/chrooting-users-with-sftp/">http://www.amitnepal.com/chrooting-users-with-sftp/</a><br>
      <br>
      Or ,  you may be able to mount that directory somewhere else and
      give access like this :<br>
<a class="moz-txt-link-freetext" href="http://www.amitnepal.com/ftp-access-to-files-outside-base-directory/">http://www.amitnepal.com/ftp-access-to-files-outside-base-directory/</a><br>
      <br>
      Just look at this part : <br>
      <p><code>mkdir /home/username/extraaccess</code></p>
      <p><code>mount --bind /folder/to/grant/access/
          /home/username/extraaccess</code></p>
      <br>
      Thanks<br>
      <div class="moz-signature"><b>Amit K Nepal<br>
          Chief Information Officer
          <br>
          (RHCE, CCENT, C|EH, C|HFI, GIAC ISO 27000 Specialist)<br>
          omNovia Technologies Inc.
        </b></div>
      On 4/30/2014 3:54 PM, keith smith wrote:<br>
    </div>
    <blockquote
      cite="mid:1398898492.85484.YahooMailNeo@web161205.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:12pt">
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">Hi I'm using CentOS
            6.5 and we use the users home dir + "public_html" as the
            docroot for our websites like this:</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">/home/user_name/public_html</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">We are using SSH for
            SFTP.  Each host has only one SFTP user.</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">What I need to do is
            add a directory, lets call it uploads like this:  </span><br
            style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class=""><br style="" class="">
          </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">/home/user_name/public_html/uploads
            <br style="" class="">
          </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">Any content in
            uploads must be accessible to Apache so it can be displayed.</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">And I would like to
            add a user that can only access </span><br style=""
            class="">
          <span style="" class="">/home/user_name/public_html/uploads
            and would be able to add/edit/remove any files in just the
            uploads directory.</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">I thought of a link,
            however that did not work.</span><span style="" class="">  I
            created a user uploads which created a home dir
            /home/uploads and I tried to link that to
            /home/user_name/public_html/ which created </span><br
            style="" class="">
          <span style="" class="">/home/user_name/public_html/uploads . 
            This did not work.</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class="">I hope this makes sense.  <br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br>
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">Any suggestions?<br>
          </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br style="" class="">
          <span style="" class=""></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class=""></span><span style=""
            class="">Thanks in advance!!</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><span style="" class="">  <br style=""
              class="">
          </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class="">Keith</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal" class=""><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">---------------------------------------------------
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a class="moz-txt-link-freetext" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
    </blockquote>
    <br>
  </body>
</html>