Hi,
I'm using this example https://github.com/pkg/sftp/blob/master/examples/go-sftp-server/main.go to make some tests on a internal sftp-server for data syncronization on multiple servers.
I was abble to define some working directories per user, checking username and defined WithServerWorkingDirectory using serverOptions.
But the users can navigate to other folders using cd .. or cd /directory.
Some chance to lock users in the defined working directories?
I was thinking of compare the output for the current sftp folder and compare it with the working directory and throw some error to the sftp client but can find a way to do it.
Thank you, Pedro