In sftp, how to set the default permission for all files in a folder?

In sftp, how to set the default permission for all files in a folder?


For centos  put two consecutive lines at the end of /etc/ssh/sshd_config
 
  
 
Match Group www-data 
 
ForceCommand internal-sftp -u 2
 
this will setup umask and files will be 644 

Comments

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Reduce (shrink) and resize raw disk at Proxmox

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10