
		signout
		
		(usa Slackware)
		
		Enviado em 30/10/2017 - 18:41h 
		Boas
Creio que esteja usando o proftpd, se for este o caso, se uma olhada em 
http://www.proftpd.org/docs/howto/Umask.html.
Se estiver usando o sftp-server "embutido" no ssh, então:
Voce pode alterar isso com o parametro -u do sftp-server:
SFTP-SERVER(8)
     -u umask
             Sets an explicit umask(2) to be applied to newly-created files and directories, instead of the
             user’s default mask.
Voce pode incluir a linha abaixo no sshd_config para aplicar o umask 002. (Considere os riscos de colocar tudo como executavel e, se for o caso, altere para o umask que melhor se adeque para voce)
ForceCommand internal-sftp -u 2
SSHD_CONFIG(5) 
     ForceCommand
             Forces the execution of the command specified by ForceCommand, ignoring any command supplied by
             the client and ~/.ssh/rc if present.  The command is invoked by using the user’s login shell
             with the -c option.  This applies to shell, command, or subsystem execution.  It is most useful
             inside a Match block.  The command originally supplied by the client is available in the
             SSH_ORIGINAL_COMMAND environment variable.  Specifying a command of “internal-sftp” will force
             the use of an in-process sftp server that requires no support files when used with ChrootDirectory.
As informações acima foram tiradas do man sftp-server(8) e sshd_config(5) e também dos links abaixo
https://stackoverflow.com/questions/23396522/how-do-you-automatically-set-permissions-on-a-file-when...
https://webcache.googleusercontent.com/search?q=cache:ha4NC7tshs8J:https://serverfault.com/questions...
Espero que ajude.
[]s