Restrict commands available in an SFTP session

Peter Stuge peter at
Fri Feb 10 00:35:53 EST 2012

Hi Sonja,

Sonja Meyer wrote:
> i am using SFTP with CHROOT. I want to allow my users that they can
> upload and download with the sftp server, but they should never do
> an MKDIR!
> Is it possible to restrict commands and how can i do this?

sftp-server has no provisions for this.

> i only found material of modifing the source...and that is not the
> best way for me.

Maybe you can work with filesystem permissions and ACLs.


More information about the openssh-unix-dev mailing list