Debian wheezy & umask for sftp

There are a lot of conflicting and incomplete postings on the web about how to get the simple task of giving sftp (only) users a reasonable umask.

Now in Debian wheezy (and probably any box running OpenSSH >= 5.5), the solution is very simple:

So as you see, the trick is to not add the “-u” switch to the global “Subsystem sftp” configuration (as seen on many tutorials in the web), but instead you can give a different “-u” setting for each “ForceCommand” line.

Spread the love

Leave a Reply

Notify of

Post Navigation