I have a question concerning default umasks when using SFTP under
openssh. In case it makes a difference, my servers are based on Redhat
Enterprise Linux Version 4 Advanced Server, and the version of the
openssh package is currently openssh-3.9p1-8.RHEL4.15.

The issue is that when I SFTP a file onto the server, the default umask
used seems to be 077, given that files are created with mode 600 and
directories with mode 700.

IIRC, you set this in the ".profile" for the user in question. I realize that there is a ".bash_profile", but I believe the ".profile" is read by the sftp server.

HTH,
Barry

Reply via email to