Warning: in_array() expects parameter 2 to be array, string given in /virtual/theblogs.bestsolution.at/httpd/htdocs/wp-content/plugins/google-one/google-plus-one.php on line 344

Warning: in_array() expects parameter 2 to be array, string given in /virtual/theblogs.bestsolution.at/httpd/htdocs/wp-content/plugins/google-one/google-plus-one.php on line 346

Debian wheezy & umask for sftp


Warning: in_array() expects parameter 2 to be array, string given in /virtual/theblogs.bestsolution.at/httpd/htdocs/wp-content/plugins/google-one/google-plus-one.php on line 344

Warning: in_array() expects parameter 2 to be array, string given in /virtual/theblogs.bestsolution.at/httpd/htdocs/wp-content/plugins/google-one/google-plus-one.php on line 346

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

avatar
  Subscribe  
Notify of

Post Navigation