How can I set file permissions on files uploaded using sftp on Red Hat Enterprise Linux 5/6/7?

Solution Verified - Updated -


  • How can I configure openssh-server to use permission 664 for ftp over ssh?
  • We need users to upload files w/ permissions of 664. If the permission of the file on their client is 0700; then  when they upload using sftp, the permissions will be 0700.


  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Openssh package
    • Using sftp for file uploads

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