Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstSFTPServerSubSystem.RequireUserAuthorization

property RequireUserAuthorization: Boolean read fRequireUserAuthorization write fRequireUserAuthorization default True;
Refuse to serve unless the SSH server has a TstSSHServerUsers attached, so that the per-user 'sftp' grant is actually enforced.

TstCustomSSHServer.SupportsSubSystem only applies that grant "if Assigned(fUsers)" -- with no users component it falls through and hands the subsystem to EVERY authenticated user. That is reachable in practice: publickey auth validates against ClientKeys without consulting the user list at all, and password auth can be satisfied by an OnSetClientPassword handler. Defaults True (fail closed); set False only if you are enforcing subsystem access some other way, e.g. via OnAuthSubSystem.