Could anyone tell me how to set the umask
for a single sftp
user? Worth mentioning is a IBM AIX...
Adding umask 002
to that user's .profile
didn't work... (the goal is that this user files are accesible to people from the same group).
I've seen somehowto's around editing the sftpd configs, though I want to set it for one user only, so I expected to find something that didn't need root access.
thanks!
f.
Worked great for me. However, needed a bit of research because what you provided is an extract from docs. A specific example in my case would be to put two consecutive lines at the end of /etc/ssh/sshd_config
Match Group www-data
ForceCommand internal-sftp -u 2
In my case what I wanted to do is to set umask to '002' (2 in decimal) if someone in group 'www-data' logs in.
There is also an option to use env. variable SSH_ORIGINAL_COMMAND instead of 'internal-sftp', but I did not have time to pursue that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With