Skip to main content

Overview

Running copyparty as a systemd service ensures it starts automatically on boot and can be managed using standard systemd commands. This guide covers installation and configuration of copyparty as both a system-wide and user service.

System Service Installation

1

Download copyparty

Download the latest copyparty SFX to /usr/local/bin:
Or if installed via package manager:
2

Create copyparty user

Create a dedicated user for running the service:
3

Configure firewall

Open the required ports:
4

Install service file

Download and install the systemd service file:
Or create /etc/systemd/system/copyparty.service with the following content:
5

Create configuration file

Create /etc/copyparty.conf with your settings:
The default configuration provides read access to everyone and full access to the admin user. Customize permissions according to your security requirements.
6

SELinux configuration (Fedora/RHEL)

If using SELinux:
7

Enable and start service

8

Verify service status

Check that the service is running:

User Service Installation

For running copyparty as a regular user without root privileges:
1

Install user service file

Create ~/.config/systemd/user/copyparty.service:
2

Create user configuration

Create ~/.config/copyparty/copyparty.conf with your settings.
3

Enable user service

Multi-Instance Setup

Run multiple copyparty instances with different configurations using template services:
1

Create template service

Create /etc/systemd/system/copyparty@.service:
2

Start instance for specific user

Chroot (prisonparty) Setup

For enhanced security, run copyparty in a chroot environment:
1

Download prisonparty script

2

Create jail directory

3

Install prisonparty service

Create /etc/systemd/system/prisonparty.service:
The chroot setup provides additional isolation but requires careful configuration of mounted directories.
4

Enable and start

Service Management

Common Commands

Configuration Reload

Copyparty supports reloading accounts and volumes without restarting:
Changes to the [global] section require a full restart to take effect.

Troubleshooting

Service Won’t Start

  1. Check service status:
  2. View detailed logs:
  3. Verify configuration:

Thumbnails Not Working

If thumbnails aren’t working, try removing the security hardening options temporarily:
Then reload and restart:

Permission Issues

Ensure the copyparty user has access to shared directories:

Advanced Configuration

Logging to File

The service creates /var/log/copyparty/ automatically. Configure logging in /etc/copyparty.conf:

Listening on Ports 80/443

To listen on privileged ports without running as root:
  1. Ensure AmbientCapabilities=CAP_NET_BIND_SERVICE is in the service file
  2. Update configuration:
  3. Reload and restart:
A reverse proxy (nginx/Apache) is recommended instead of direct port 80/443 access.

Next Steps

Docker Deployment

Run copyparty in a container

Reverse Proxy

Set up nginx or Apache

Security

Harden your installation