Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents
Revision 1 as of 2010-04-13 05:37:24
MeidokonWiki:
  • furinkan
  • sftp_shell

SFTP shell for restricted usage

From http://www.derkeiler.com/Newsgroups/comp.security.ssh/2005-09/0096.html

On 2005-09-20, paul.mcgarry@gmail.com <paul.mcgarry@gmail.com> wrote:
> Richard E. Silverman wrote:
>> Sure, you can just wrap sftp-server in a script which first sets the
>> umask.
>
> Excellent, I just created an /opt/sftp-server.sh script:
>====
> #!/bin/bash
> umask 002
> /usr/lib/sftp-server

It probably won't matter much, but if you change the last line to
"exec /usr/lib/sftp-server" then you won't have an extra shell process
hanging around for the duration of the sftp-server process.
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.