4 Responses to “Enable user access only to ProFTP server / Disable user login via ssh scp and sftp”

  1. Jason Leidner says:
    Google Chrome 5.0.375.127 Google Chrome 5.0.375.127 Mac OS X 10.6.4 Mac OS X 10.6.4
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4

    You could use /bin/false for this without creating a new shell. Not sure if debian has this, but for RHEL/CentOS it would be simple.

    So it would just be the following steps:

    echo “/bin/false” >> /etc/shells
    usermod -s /bin/false ftp-user

    Done!

    Also – checkout scponly as an alternative to RSSH since the RSSH maintainer left the project some time ago.

    Thanks for the post.

    View CommentView Comment
    • admin says:
      Epiphany 2.29.92 Epiphany 2.29.92 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Safari/531.2+ Debian/squeeze/sid () Epiphany/2.29.92

      Hi Jason,

      Thank you very much for the good notes. I’ll bear them in mind for the future.

      Cya around

      View CommentView Comment
  2. people of israel says:
    Firefox 3.0.14 Firefox 3.0.14 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)

    I really love approaching your website! your unique strategy to see things is what keeps me interested. Thanks so much!!!!

    View CommentView Comment
  3. Bill Zhao says:
    Google Chrome 15.0.874.121 Google Chrome 15.0.874.121 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

    I have just used the script. this is really effective post
    Thanks indeed!

    View CommentView Comment

Leave a Reply

CommentLuv badge