<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Thank you so much!!<br><br><div><span></span></div><div> </div><div>------------------------<br>Keith Smith</div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, April 30, 2014 4:20 PM, Amit Nepal <amit@amitnepal.com> wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv0844989791"><div>
    <div class="yiv0844989791moz-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 clear="none">
      <br clear="none">
      <a rel="nofollow" shape="rect" class="yiv0844989791moz-txt-link-freetext" target="_blank" href="http://www.amitnepal.com/chrooting-users-with-sftp/">http://www.amitnepal.com/chrooting-users-with-sftp/</a><br clear="none">
      <br clear="none">
      Or ,  you may be able to mount that directory somewhere else and
      give access like this :<br clear="none">
<a rel="nofollow" shape="rect" class="yiv0844989791moz-txt-link-freetext" target="_blank" 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 clear="none">
      <br clear="none">
      Just look at this part : <br clear="none">
      <div><code>mkdir /home/username/extraaccess</code></div>
      <div><code>mount --bind /folder/to/grant/access/
          /home/username/extraaccess</code></div>
      <br clear="none">
      Thanks<br clear="none">
      <div class="yiv0844989791moz-signature"><b>Amit K Nepal<br clear="none">
          Chief Information Officer
          <br clear="none">
          (RHCE, CCENT, C|EH, C|HFI, GIAC ISO 27000 Specialist)<br clear="none">
          omNovia Technologies Inc.
        </b></div>
      On 4/30/2014 3:54 PM, keith smith wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <div class="yiv0844989791yqt9018302262" id="yiv0844989791yqt19594"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">
        <div class="yiv0844989791" 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;"><br style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">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 class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">/home/user_name/public_html</span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">We are using SSH for
            SFTP.  Each host has only one SFTP user.</span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">What I need to do is
            add a directory, lets call it uploads like this:  </span><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style=""><br class="yiv0844989791" style="" clear="none">
          </span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">/home/user_name/public_html/uploads
            <br class="yiv0844989791" style="" clear="none">
          </span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">Any content in
            uploads must be accessible to Apache so it can be displayed.</span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">And I would like to
            add a user that can only access </span><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style="">/home/user_name/public_html/uploads
            and would be able to add/edit/remove any files in just the
            uploads directory.</span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">I thought of a link,
            however that did not work.</span><span class="yiv0844989791" style="">  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 class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style="">/home/user_name/public_html/uploads . 
            This did not work.</span></div>
        <div class="yiv0844989791" 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;"><br clear="none">
        </div>
        <div class="yiv0844989791" 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;">I hope this makes sense.  <br clear="none">
        </div>
        <div class="yiv0844989791" 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;"><br clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">Any suggestions?<br clear="none">
          </span></div>
        <div class="yiv0844989791" 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;"><br class="yiv0844989791" style="" clear="none">
          <span class="yiv0844989791" style=""></span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style=""></span><span class="yiv0844989791" style="">Thanks in advance!!</span></div>
        <div class="yiv0844989791" 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;"><span class="yiv0844989791" style="">  <br class="yiv0844989791" style="" clear="none">
          </span></div>
        <div class="yiv0844989791" 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;">Keith</div>
        <div class="yiv0844989791" 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;"><br clear="none">
        </div>
        <div class="yiv0844989791" 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;"><br clear="none">
        </div>
      </div></div>
      <br clear="none">
      <fieldset class="yiv0844989791mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>---------------------------------------------------
PLUG-discuss mailing list - <a rel="nofollow" shape="rect" class="yiv0844989791moz-txt-link-abbreviated" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a rel="nofollow" shape="rect" class="yiv0844989791moz-txt-link-freetext" target="_blank" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
    </blockquote>
    <br clear="none">
  </div></div><br><div class="yqt9018302262" id="yqt65476">---------------------------------------------------<br clear="none">PLUG-discuss mailing list - <a shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">To subscribe, unsubscribe, or to change your mail settings:<br clear="none"><a shape="rect" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div><br><br></div>  </div> </div>  </div> </div></body></html>