<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/18/2012 02:12 PM, Patrick
      Asselman wrote:<br>
    </div>
    <blockquote cite="mid:eabedbcbef85be50713fbe8dd840f52d@pro.dohd.org"
      type="cite">On 2012-10-18 09:21, Jkhatri wrote:
      <br>
      <blockquote type="cite">Dear all,
        <br>
        <br>
         I've configured Ubuntu 12.04 LTS server as FTP server (vsftpd)
        for
        <br>
        our local users, all works fine,,, but now its required to
        create some
        <br>
        non-interactive user accounts who are not allowed to use SSH or
        local
        <br>
        login, but only FTP access to their home directory.
        <br>
        <br>
         I've added user with -s option with /usr/sbin/nologin to
        disable
        <br>
        shell access, but this user is not able to FTP as well, .... any
        <br>
        solution.??? how to add users with only FTP access to their home
        <br>
        directory >>>
        <br>
        <br>
          
        <br>
         Warm Regards
        <br>
      </blockquote>
      <br>
      Why do you use something in /usr/sbin/ ?
      <br>
      Normally you would use /bin/false
      <br>
      In any case you need to add it to your /etc/shells otherwise it is
      not recognised as something that is allowed to run.
      <br>
      <br>
      This thread seems helpful:
      <a class="moz-txt-link-freetext" href="http://ubuntuforums.org/showthread.php?t=79588">http://ubuntuforums.org/showthread.php?t=79588</a>
      <br>
      <br>
      Best regards,
      <br>
      Patrick Asselman
      <br>
      <br>
    </blockquote>
    <br>
    Thanks for you quick reply .. said link is for proftpd and I'm using
    vsftpd ...<br>
    <br>
    I've gone through your said solution... but situation is a
    particular ftp user is not able to login interactively (ssh or
    telnet ). thats ok<br>
    but whenever he tries to ftp into server he gets "500 OOPS: vsftpd:
    refusing to run with writable root inside chroot()<br>
    Login failed."<br>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 3.2 (Unix)">
      <meta name="AUTHOR" content="livewire ">
      <meta name="CREATED" content="20100413;16400600">
      <meta name="CHANGEDBY" content="Livewire ">
      <meta name="CHANGED" content="20110817;15290400">
      <meta name="CHANGEDBY" content="livewire ">
      <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -->
        </style>
      <p style="margin-bottom: 0cm">*/</p>
      <p style="margin-bottom: 0cm">
        <meta name="CHANGEDBY" content="livewire ">
        Jatin
        Khatri</p>
      <p style="margin-bottom: 0cm">RHCSA RHCE CCNA</p>
      <p style="margin-bottom: 0cm"><a
          href="http://www.fedoraproject.org/wiki/Jatin">www.fedoraproject.org/wiki/Jatin</a>
      </p>
      <p style="margin-bottom: 0cm">Phone (+91) 98250 20393</p>
      <p style="margin-bottom: 0cm; font-style: normal; font-weight:
        normal">
        <font face="arial"><font size="2"><font color="#008000"><font
                face="Arial">Save
                Paper, Save Environment.**</font></font><font
              color="#993366"><br>
            </font><font color="#008000"><font face="Arial"><i><b>(Plant
                    at least one tree in your life and nurture it !!!)</b></i></font></font></font></font></p>
      <p style="margin-bottom: 0cm"><br>
      </p>
    </div>
  </body>
</html>