File Permissions Changing When Uploading Files to a Specific Directory via SFTP

Solution Unverified - Updated -

Issue

  • When files are uploaded to a specific directory via SFTP, the file permissions change to 700.

  • The umask is set as follows:

-bash-4.4$ umask
0022

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content