Sftp Umask

Hi All,

in my HP-UX 11.11 , there is an parameter of SFTP_UMASK at env,
but How do we use it ?

I tried with type : SFTP_UMASK=022
and when I type : env
the SFTP_UMASK value has changed to 022 .

but when I send a file with use SFTP from other pc/server .
It still umask 077 (chmod 700) on the file .

What should I do If I need to set one user to get an umask=022 when the file comes from SFTP ??

Thx
-dju

I would have thought this would be a server side configuration.

yes , correct..
this parameter is on my server..

I would like to set SFTP umask on my server.
so, If there any files come from other to my server. it will be automatically have permission 744.

thx
-dju

Normally umask works the opposite way, it shows the bits that won't be enabled.

Am not too sure, but can you try setting the umask in the profile of the userid with which you are connecting to the server? I have faced a pretty similar problem, but we had to implement a complicated solution...