Unable to set umask with internal-sftp on the system

Solution Verified - Updated -

Issue

  • Unable to set umask with internal-sftp on the system, configuration in /etc/ssh/sshd_config:
Match Group sftpusers
        ChrootDirectory <directory_path>
        AllowTcpForwarding no
        ForceCommand internal-sftp -u <umask>
        X11Forwarding no

Environment

  • Red Hat Enterprise Linux 6
  • openssh-5.3p1-94.el6

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