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

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

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.