Score:0

Why SFTP user can view all files using FileZilla?

cn flag

I created FTP site and I set the permissions for each user and user groups (Admins/Users) using virtual directory. Each user has its own directory which he can access and Admins can access all folders inside ftproot folder.

Each user permission worked fine when connecting via FileZilla – on the regular FTP. Then, I tried setting up the SFTP, for that I need OpenSSH SSH Server. I Installed it using Apps > Apps & Features, started it, and I created a new Firewall rule for port 22. When a user connects using SFTP, the permissions I defined are no longer valid and the user can access every folder.

Also, when the user logs in, system creates a new folder called by his username (example: user01) in the main ‘Users’ folder inside VM. I’ve tried changing the sshd_config file located in the main ssh folder (following these steps https://bensmann.no/restrict-sftp-users-to-home-folder/) When I try to restart the ‘OpenSSH SSH Server ’ I get an error saying that it can’t start the server.

My question is:

What are the proper steps on creating SFTP with user isolation?

I'm using Windows Server 2019 with GUI

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.