FG
💻 Software

How to not allow user outside of home directory with SFTP

Fresh5 days ago
Mar 15, 202647694 views
Confidence Score0%
0%

Problem

I'm running Ubuntu 10.04. I have users' home directories set, but I want to restrict them to their home directory and its children when they are connecting via SFTP. In other words: not allowing them to move outside out of it. What do I have to do to achieve this?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to not allow user outside of home directory with SFTP

Low Risk

FTP From the Ubuntu documentation: Securing FTP There are options in to help make vsftpd more secure. For example users can be limited to their home directories by uncommenting: You can also limit a specific list of users to just their home director…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment