Skip to main content
Per-folder, per-user permissions. If your setup is getting complex, consider making a config file instead of using command-line arguments.
Changes to the config file can be applied at runtime with systemctl reload copyparty or the [reload cfg] button in the control-panel (if the user has a/admin permission in any volume).Changes to the [global] config section require a restart to take effect.

Quick Summary

A quick summary can be seen using --help-accounts

Creating Accounts

Configuring accounts/volumes with command-line arguments:

Creating Volumes

Volumes map server filesystem paths to URL paths with specific permissions.

Command-Line Syntax

The syntax is: -v src:dst:perm:perm:...
  • src: Local path on the server
  • dst: URL path in the web interface
  • perm: One or more permissions to set

Basic Examples

Permission Types

read
Browse folder contents, download files, download as zip/tar, see filekeys/dirkeys
write
Upload files, move/copy files into this folder (requires r to see the uploads)
move
Move files/folders from this folder (requires w at destination)
delete
Permanently delete files and folders
dots
User can ask to show dotfiles in directory listings
get
Only download files, cannot see folder contents or zip/tar
upget
Same as g except uploaders get to see their own filekeys
html
Same as g except folders return their index.html, and filekeys are not necessary for index.html
admin
Can see upload time, uploader IPs, config-reload
all
Same as rwmda. (read/write/move/delete/admin/dotfiles)

Advanced Examples

Write-Only Upload Folder

Anonymous Upload with Filekeys

  • u1 can upload files, browse the folder, and see the generated filekeys
  • Other users cannot browse the folder, but can access files if they have the full file URL with the filekey
  • Replacing g with wg would let anonymous users upload files, but not see the required filekey to access it
  • Replacing g with wG would let anonymous users upload files, receiving a working direct link in return

User Groups

Built-in Groups

Custom Groups

Shadowing

Hiding specific subfolders by mounting another volume on top of them.
Visitors can see contents of /mnt and /mnt/web (at URLs / and /web), but not /mnt/web/certs because URL /web/certs is mapped to /var/empty.
This also works for single files, because files can also be volumes.

Dotfiles

Unix-style hidden files/folders starting with a dot.
  • Anyone can access dotfiles if they know the name
  • Dotfiles normally don’t appear in directory listings
  • A client can request to see dotfiles if:
    • Global option -ed is specified, OR
    • The volume has volflag dots, OR
    • The user has permission .

Configuration Example

Even if a user has permission to see dotfiles, they are default-hidden unless --see-dots is set, and/or the user has enabled the dotfiles option in the settings tab.

Password Ban Protection

Anyone trying to bruteforce a password gets banned according to --ban-pw. Default: 24h ban for 9 failed attempts in 1 hour

Complete Example