💻 Software
In sftp, how to set the default permission for all files in a folder?
Fresh5 days ago
Mar 15, 202650424 viewsConfidence Score0%
0%
Problem
I want to set the default permission for all files in a folder, including newly uploaded ones, to a certain value, say 644, instead of doing "chmod 644" all the time. Is there any command making this possible?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: In sftp, how to set the default permission for all files in a folder?
Low Risk
Alternatively, you can set the umask for all sftp logins in sshd's config file (/etc/ssh/sshd_config on my Debian box). For that add to the sftp subsystem line like so: From :
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix