[Bug 1979] New: Enhancement patch: Restrict sftp-server to basic commands, by user or group

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Feb 13 06:39:04 EST 2012


https://bugzilla.mindrot.org/show_bug.cgi?id=1979

             Bug #: 1979
           Summary: Enhancement patch: Restrict sftp-server to basic
                    commands, by user or group
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.9p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: sftp-server
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: jdmossh at nand.net


Created attachment 2128
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2128
Patch versus 5.9p1

This patch adds the ability to restrict an sftp-server user to just
basic commands such as get, put, readdir, and readlink, and prohibit
mkdir, rmdir, rename, symlink, setstat and their equivalents.

It comes with an sshd_config option (RestrictSFtpSysToBasics) which can
be global or in a Match block.

I've found it helpful, and that request occasionally comes up on the
openssh-unix-dev list.

Please give feedback and consider it for inclusion.  Patches are
attached against both 5.9p1 and openbsd's 5.9.

A more advanced enhancement might let the server admin specify which
commands to permit/deny; I think this is a good start.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list