= 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 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. }}}