Re: sFTP accounts, but not shell.

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 02/28/02

  • Next message: Jason Sigurdur: "sshd "DId not receive identification string from""

    From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
    Date: Thu, 28 Feb 2002 00:13:39 GMT
    
    

    "Sylvain Pajot" <sylvain.pajot@isty-info.uvsq.fr> wrote in message
    news:56cd0e5f.0202271357.69d6ad5a@posting.google.com...
    > Hi there,
    >
    > One simple simple question : is there any way to set up sFTP accounts
    > without granting users with shell access ?
    > Of course, I don't except an answer that simple (how to do it) ;)
    >
    > Regards,
    >
    > Sylvain

    Build a chroot cage (with my notes at http://www.cag.lcs.mit.edu/~raoul/.
    for OpenSSH). Put appropriate binaries in the cage, and install a restricted
    shell to go with it. Most restricted shells aren't *that* restricted, so you
    reall want to trap them in a chroot cage as well.

    Assign the user an appropriate home directory and the restricted shell.
    Voila! Done!



    Relevant Pages

    • Restricted Shells
      ... of the restricted shells on *NIX systems. ... restricted shells (rbash, rksh) ... command is executed from the shell and it is found ... Then execute the following: ...
      (Bugtraq)
    • Re: sftp question
      ... SSH always uses the shell to run remote programs, ... > so this is a reliable restriction. ... recommend a chroot cage as well or instead. ...
      (comp.security.ssh)