Skip to content

Instantly share code, notes, and snippets.

@MortezaJavadian
Last active November 27, 2025 10:47
Show Gist options
  • Select an option

  • Save MortezaJavadian/83425594d420a6a0d03c9f4bce41ca8e to your computer and use it in GitHub Desktop.

Select an option

Save MortezaJavadian/83425594d420a6a0d03c9f4bce41ca8e to your computer and use it in GitHub Desktop.

How to Share Folders Between Users in FTP

The Solution: use a Bind Mount. This makes the system treat the shared folder as if it physically exists in the user's directory.

# 1. Create a real, empty folder.
mkdir -p "/home/parsa/example"

# 2. Mount the Folder
# Usage: mount --bind [SOURCE] [DESTINATION]
mount --bind "/home/amin/example" "/home/parsa/example"

# 3. Check Permissions
# Ensure the FTP user (parsa) has permission to read the files.
chmod -R 755 "/home/amin/example"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment