Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I limit a user so that they cannot access files outside of a certain directory?

0
Posted

How can I limit a user so that they cannot access files outside of a certain directory?

0

The answer depends on what sort of access you have in mind. For shell access and remote execution, jailing a user is possible only through Windows file system permissions. On the other hand, if you are permitting the user only file transfer access (using SFTP and SCP), you can configure a limited-access virtual filesystem for the user by editing settings for their account or group in WinSSHD Settings. If editing account settings, disable ‘Use default SFS map’, then open SFS virtual filesystem mount points, and set the ‘Real root path’ setting for the default mount point (‘/’) to the directory you want them to access.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123