GhostFS
Guides

File Sharing

Share files and folders between users

File Sharing

GhostFS allows users to share files and folders with other users.

Creating a Share

Share a file or directory:

ghostfs share create --path /myfile.txt --name "My Document"

This returns a share ID you can give to recipients.

Adding Recipients

# Share with specific users
ghostfs share add-recipient --id <share-id> --user bob

# Share with multiple users
ghostfs share add-recipient --id <share-id> --user bob --user charlie

Mounting Shared Content

Recipients can mount shared content:

ghostfs share mount --id <share-id> --mount-path /shared/document

The shared content appears at /shared/document in their filesystem.

Listing Shares

# List shares you've created
ghostfs share list --owned

# List shares shared with you
ghostfs share list --received

Revoking Access

# Remove a recipient
ghostfs share remove-recipient --id <share-id> --user bob

# Revoke entire share
ghostfs share revoke --id <share-id>

On this page